Do not try to sync metadata on standby coordinator

pull/3146/head
Marco Slot 2019-10-30 05:15:45 +01:00
parent dadbe86af1
commit 51c64c70c9
1 changed files with 3 additions and 2 deletions

View File

@ -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;