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
|
#endif
|
||||||
|
|
||||||
if (MetadataSyncTriggeredCheckAndReset(myDbData) ||
|
if (!RecoveryInProgress() &&
|
||||||
GetCurrentTimestamp() >= nextMetadataSyncTime)
|
(MetadataSyncTriggeredCheckAndReset(myDbData) ||
|
||||||
|
GetCurrentTimestamp() >= nextMetadataSyncTime))
|
||||||
{
|
{
|
||||||
bool metadataSyncFailed = false;
|
bool metadataSyncFailed = false;
|
||||||
int64 nextTimeout = 0;
|
int64 nextTimeout = 0;
|
||||||
|
|
Loading…
Reference in New Issue