update src/gausskernel/storage/replication/slot.cpp.
修复删除正在解码的逻辑复制槽时,备机挂掉的问题
This commit is contained in:
@ -420,7 +420,7 @@ void ReplicationSlotAcquire(const char *name, bool isDummyStandby, bool isDrop)
|
||||
/* We allow dropping active logical replication slots on standby in opengauss. */
|
||||
if (active) {
|
||||
if ((slot->data.database != InvalidOid || isDummyStandby != slot->data.isDummyStandby)
|
||||
ifndef ENABLE_MULTIPLE_NODES
|
||||
#ifndef ENABLE_MULTIPLE_NODES
|
||||
&& !isDrop
|
||||
#endif
|
||||
)
|
||||
|
Reference in New Issue
Block a user