forked from huawei/openGauss-server
fix drop slot failed
Offering: openGaussDev More detail: Modify drop replication slot part Match-id-a167049aa605cf4fae4bfa8c05188a5e0ab23a78
This commit is contained in:
parent
79e95ec77b
commit
dc8a4f11e3
|
@ -705,7 +705,8 @@ static void ReplicationSlotDropAcquired(void)
|
||||||
} else {
|
} else {
|
||||||
volatile ReplicationSlot *vslot = slot;
|
volatile ReplicationSlot *vslot = slot;
|
||||||
|
|
||||||
bool fail_softly = GET_SLOT_PERSISTENCY(slot->data) == RS_EPHEMERAL;
|
bool fail_softly = GET_SLOT_PERSISTENCY(slot->data) == RS_EPHEMERAL ||
|
||||||
|
(GET_SLOT_PERSISTENCY(slot->data) == RS_PERSISTENT && slot->extra_content != NULL);
|
||||||
SpinLockAcquire(&slot->mutex);
|
SpinLockAcquire(&slot->mutex);
|
||||||
vslot->active = false;
|
vslot->active = false;
|
||||||
SpinLockRelease(&slot->mutex);
|
SpinLockRelease(&slot->mutex);
|
||||||
|
|
Loading…
Reference in New Issue