Skip to content

Commit e06b2e1

Browse files
committed
Don't disable commit_ts in standby if enabled locally
Bug noticed by Fujii Masao
1 parent cdcae2b commit e06b2e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/access/transam/commit_ts.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -583,14 +583,15 @@ CommitTsParameterChange(bool newvalue, bool oldvalue)
583583
* pg_control. If the old value was already set, we already did this, so
584584
* don't do anything.
585585
*
586-
* If the module is disabled in the master, disable it here too.
586+
* If the module is disabled in the master, disable it here too, unless
587+
* the module is enabled locally.
587588
*/
588589
if (newvalue)
589590
{
590591
if (!track_commit_timestamp && !oldvalue)
591592
ActivateCommitTs();
592593
}
593-
else if (oldvalue)
594+
else if (!track_commit_timestamp && oldvalue)
594595
DeactivateCommitTs(false);
595596
}
596597

0 commit comments

Comments
 (0)