Do not try to sync metadata on standby coordinator

release-9.0
Marco Slot 2019-10-30 05:15:45 +01:00
parent 1c7e02280f
commit f110a9fbe7
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;