mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Final pgindent + perltidy run for 9.6.
This commit is contained in:
@@ -129,7 +129,7 @@ libpqrcv_get_conninfo(void)
|
||||
{
|
||||
PQconninfoOption *conn_opts;
|
||||
PQconninfoOption *conn_opt;
|
||||
PQExpBufferData buf;
|
||||
PQExpBufferData buf;
|
||||
char *retval;
|
||||
|
||||
Assert(streamConn != NULL);
|
||||
@@ -145,7 +145,7 @@ libpqrcv_get_conninfo(void)
|
||||
/* build a clean connection string from pieces */
|
||||
for (conn_opt = conn_opts; conn_opt->keyword != NULL; conn_opt++)
|
||||
{
|
||||
bool obfuscate;
|
||||
bool obfuscate;
|
||||
|
||||
/* Skip debug and empty options */
|
||||
if (strchr(conn_opt->dispchar, 'D') ||
|
||||
|
||||
@@ -193,10 +193,11 @@ SyncRepWaitForLSN(XLogRecPtr lsn, bool commit)
|
||||
ResetLatch(MyLatch);
|
||||
|
||||
/*
|
||||
* Acquiring the lock is not needed, the latch ensures proper barriers.
|
||||
* If it looks like we're done, we must really be done, because once
|
||||
* walsender changes the state to SYNC_REP_WAIT_COMPLETE, it will never
|
||||
* update it again, so we can't be seeing a stale value in that case.
|
||||
* Acquiring the lock is not needed, the latch ensures proper
|
||||
* barriers. If it looks like we're done, we must really be done,
|
||||
* because once walsender changes the state to SYNC_REP_WAIT_COMPLETE,
|
||||
* it will never update it again, so we can't be seeing a stale value
|
||||
* in that case.
|
||||
*/
|
||||
if (MyProc->syncRepState == SYNC_REP_WAIT_COMPLETE)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user