mirror of https://github.com/citusdata/citus.git
Merge pull request #3146 from citusdata/fix/metadata_sync_on_standby
Do not try to sync metadata on standby coordinatorpull/3147/head
commit
ab4cf8525b
|
@ -366,8 +366,9 @@ CitusMaintenanceDaemonMain(Datum main_arg)
|
|||
}
|
||||
#endif
|
||||
|
||||
if (MetadataSyncTriggeredCheckAndReset(myDbData) ||
|
||||
GetCurrentTimestamp() >= nextMetadataSyncTime)
|
||||
if (!RecoveryInProgress() &&
|
||||
(MetadataSyncTriggeredCheckAndReset(myDbData) ||
|
||||
GetCurrentTimestamp() >= nextMetadataSyncTime))
|
||||
{
|
||||
bool metadataSyncFailed = false;
|
||||
int64 nextTimeout = 0;
|
||||
|
|
Loading…
Reference in New Issue