mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
pgindent run for 9.6
This commit is contained in:
@@ -464,7 +464,7 @@ SendTimeLineHistory(TimeLineHistoryCmd *cmd)
|
||||
pq_beginmessage(&buf, 'D');
|
||||
pq_sendint(&buf, 2, 2); /* # of columns */
|
||||
len = strlen(histfname);
|
||||
pq_sendint(&buf, len, 4); /* col1 len */
|
||||
pq_sendint(&buf, len, 4); /* col1 len */
|
||||
pq_sendbytes(&buf, histfname, len);
|
||||
|
||||
fd = OpenTransientFile(path, O_RDONLY | PG_BINARY, 0666);
|
||||
@@ -657,7 +657,7 @@ StartReplication(StartReplicationCmd *cmd)
|
||||
|
||||
/* Initialize shared memory status, too */
|
||||
{
|
||||
WalSnd *walsnd = MyWalSnd;
|
||||
WalSnd *walsnd = MyWalSnd;
|
||||
|
||||
SpinLockAcquire(&walsnd->mutex);
|
||||
walsnd->sentPtr = sentPtr;
|
||||
@@ -728,7 +728,7 @@ StartReplication(StartReplicationCmd *cmd)
|
||||
pq_sendint(&buf, 2, 2); /* number of columns */
|
||||
|
||||
len = strlen(tli_str);
|
||||
pq_sendint(&buf, len, 4); /* length */
|
||||
pq_sendint(&buf, len, 4); /* length */
|
||||
pq_sendbytes(&buf, tli_str, len);
|
||||
|
||||
len = strlen(startpos_str);
|
||||
@@ -901,7 +901,7 @@ CreateReplicationSlot(CreateReplicationSlotCmd *cmd)
|
||||
|
||||
/* slot_name */
|
||||
len = strlen(NameStr(MyReplicationSlot->data.name));
|
||||
pq_sendint(&buf, len, 4); /* col1 len */
|
||||
pq_sendint(&buf, len, 4); /* col1 len */
|
||||
pq_sendbytes(&buf, NameStr(MyReplicationSlot->data.name), len);
|
||||
|
||||
/* consistent wal location */
|
||||
@@ -1008,7 +1008,7 @@ StartLogicalReplication(StartReplicationCmd *cmd)
|
||||
|
||||
/* Also update the sent position status in shared memory */
|
||||
{
|
||||
WalSnd *walsnd = MyWalSnd;
|
||||
WalSnd *walsnd = MyWalSnd;
|
||||
|
||||
SpinLockAcquire(&walsnd->mutex);
|
||||
walsnd->sentPtr = MyReplicationSlot->data.restart_lsn;
|
||||
@@ -1569,7 +1569,7 @@ ProcessStandbyReplyMessage(void)
|
||||
* standby.
|
||||
*/
|
||||
{
|
||||
WalSnd *walsnd = MyWalSnd;
|
||||
WalSnd *walsnd = MyWalSnd;
|
||||
|
||||
SpinLockAcquire(&walsnd->mutex);
|
||||
walsnd->write = writePtr;
|
||||
@@ -1948,7 +1948,7 @@ InitWalSenderSlot(void)
|
||||
*/
|
||||
for (i = 0; i < max_wal_senders; i++)
|
||||
{
|
||||
WalSnd *walsnd = &WalSndCtl->walsnds[i];
|
||||
WalSnd *walsnd = &WalSndCtl->walsnds[i];
|
||||
|
||||
SpinLockAcquire(&walsnd->mutex);
|
||||
|
||||
@@ -2161,7 +2161,7 @@ retry:
|
||||
*/
|
||||
if (am_cascading_walsender)
|
||||
{
|
||||
WalSnd *walsnd = MyWalSnd;
|
||||
WalSnd *walsnd = MyWalSnd;
|
||||
bool reload;
|
||||
|
||||
SpinLockAcquire(&walsnd->mutex);
|
||||
@@ -2399,7 +2399,7 @@ XLogSendPhysical(void)
|
||||
|
||||
/* Update shared memory status */
|
||||
{
|
||||
WalSnd *walsnd = MyWalSnd;
|
||||
WalSnd *walsnd = MyWalSnd;
|
||||
|
||||
SpinLockAcquire(&walsnd->mutex);
|
||||
walsnd->sentPtr = sentPtr;
|
||||
@@ -2461,7 +2461,7 @@ XLogSendLogical(void)
|
||||
|
||||
/* Update shared memory status */
|
||||
{
|
||||
WalSnd *walsnd = MyWalSnd;
|
||||
WalSnd *walsnd = MyWalSnd;
|
||||
|
||||
SpinLockAcquire(&walsnd->mutex);
|
||||
walsnd->sentPtr = sentPtr;
|
||||
@@ -2556,7 +2556,7 @@ WalSndRqstFileReload(void)
|
||||
|
||||
for (i = 0; i < max_wal_senders; i++)
|
||||
{
|
||||
WalSnd *walsnd = &WalSndCtl->walsnds[i];
|
||||
WalSnd *walsnd = &WalSndCtl->walsnds[i];
|
||||
|
||||
if (walsnd->pid == 0)
|
||||
continue;
|
||||
@@ -2708,7 +2708,7 @@ WalSndWakeup(void)
|
||||
void
|
||||
WalSndSetState(WalSndState state)
|
||||
{
|
||||
WalSnd *walsnd = MyWalSnd;
|
||||
WalSnd *walsnd = MyWalSnd;
|
||||
|
||||
Assert(am_walsender);
|
||||
|
||||
@@ -2792,7 +2792,7 @@ pg_stat_get_wal_senders(PG_FUNCTION_ARGS)
|
||||
|
||||
for (i = 0; i < max_wal_senders; i++)
|
||||
{
|
||||
WalSnd *walsnd = &WalSndCtl->walsnds[i];
|
||||
WalSnd *walsnd = &WalSndCtl->walsnds[i];
|
||||
XLogRecPtr sentPtr;
|
||||
XLogRecPtr write;
|
||||
XLogRecPtr flush;
|
||||
|
Reference in New Issue
Block a user