mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Final pgindent + perltidy run for v10.
This commit is contained in:
@ -75,8 +75,8 @@ LogicalRepCtxStruct *LogicalRepCtx;
|
||||
|
||||
typedef struct LogicalRepWorkerId
|
||||
{
|
||||
Oid subid;
|
||||
Oid relid;
|
||||
Oid subid;
|
||||
Oid relid;
|
||||
} LogicalRepWorkerId;
|
||||
|
||||
static List *on_commit_stop_workers = NIL;
|
||||
@ -552,7 +552,7 @@ void
|
||||
logicalrep_worker_stop_at_commit(Oid subid, Oid relid)
|
||||
{
|
||||
LogicalRepWorkerId *wid;
|
||||
MemoryContext oldctx;
|
||||
MemoryContext oldctx;
|
||||
|
||||
/* Make sure we store the info in context that survives until commit. */
|
||||
oldctx = MemoryContextSwitchTo(TopTransactionContext);
|
||||
@ -824,11 +824,12 @@ AtEOXact_ApplyLauncher(bool isCommit)
|
||||
{
|
||||
if (isCommit)
|
||||
{
|
||||
ListCell *lc;
|
||||
ListCell *lc;
|
||||
|
||||
foreach (lc, on_commit_stop_workers)
|
||||
foreach(lc, on_commit_stop_workers)
|
||||
{
|
||||
LogicalRepWorkerId *wid = lfirst(lc);
|
||||
|
||||
logicalrep_worker_stop(wid->subid, wid->relid);
|
||||
}
|
||||
|
||||
|
@ -353,7 +353,7 @@ restart:
|
||||
{
|
||||
if (state->acquired_by != 0)
|
||||
{
|
||||
ConditionVariable *cv;
|
||||
ConditionVariable *cv;
|
||||
|
||||
if (nowait)
|
||||
ereport(ERROR,
|
||||
@ -977,7 +977,7 @@ replorigin_get_progress(RepOriginId node, bool flush)
|
||||
static void
|
||||
ReplicationOriginExitCleanup(int code, Datum arg)
|
||||
{
|
||||
ConditionVariable *cv = NULL;
|
||||
ConditionVariable *cv = NULL;
|
||||
|
||||
LWLockAcquire(ReplicationOriginLock, LW_EXCLUSIVE);
|
||||
|
||||
@ -1097,7 +1097,7 @@ replorigin_session_setup(RepOriginId node)
|
||||
void
|
||||
replorigin_session_reset(void)
|
||||
{
|
||||
ConditionVariable *cv;
|
||||
ConditionVariable *cv;
|
||||
|
||||
Assert(max_replication_slots != 0);
|
||||
|
||||
|
@ -1117,9 +1117,9 @@ SnapBuildProcessRunningXacts(SnapBuild *builder, XLogRecPtr lsn, xl_running_xact
|
||||
* only ever look at those.
|
||||
*
|
||||
* NB: We only increase xmax when a catalog modifying transaction commits
|
||||
* (see SnapBuildCommitTxn). Because of this, xmax can be lower than xmin,
|
||||
* which looks odd but is correct and actually more efficient, since we hit
|
||||
* fast paths in tqual.c.
|
||||
* (see SnapBuildCommitTxn). Because of this, xmax can be lower than
|
||||
* xmin, which looks odd but is correct and actually more efficient, since
|
||||
* we hit fast paths in tqual.c.
|
||||
*/
|
||||
builder->xmin = running->oldestRunningXid;
|
||||
|
||||
|
Reference in New Issue
Block a user