diff --git a/src/gausskernel/storage/replication/slot.cpp b/src/gausskernel/storage/replication/slot.cpp index 910eab635..5aa6c3212 100644 --- a/src/gausskernel/storage/replication/slot.cpp +++ b/src/gausskernel/storage/replication/slot.cpp @@ -418,11 +418,7 @@ void ReplicationSlotAcquire(const char *name, bool isDummyStandby) if (slot == NULL) ereport(ERROR, (errcode(ERRCODE_UNDEFINED_OBJECT), errmsg("replication slot \"%s\" does not exist", name))); if (active) { - if ((slot->data.database != InvalidOid || isDummyStandby != slot->data.isDummyStandby) -#ifndef ENABLE_MULTIPLE_NODES - && !RecoveryInProgress() -#endif - ) + if (slot->data.database != InvalidOid || isDummyStandby != slot->data.isDummyStandby) ereport(ERROR, (errcode(ERRCODE_OBJECT_IN_USE), errmsg("replication slot \"%s\" is already active", name))); else { ereport(WARNING,