summaryrefslogtreecommitdiff
path: root/src/include/replication
diff options
context:
space:
mode:
authorAlvaro Herrera2021-06-11 19:48:26 +0000
committerAlvaro Herrera2021-06-11 19:48:26 +0000
commit1632ea43682fcea8836ea245771ae85b9e1bcd38 (patch)
treeb72c035d795530754a46470c4a2addf83bf0a4c2 /src/include/replication
parentb676ac443b6a83558d4701b2dd9491c0b37e17c4 (diff)
Return ReplicationSlotAcquire API to its original form
Per 96540f80f833; the awkward API introduced by c6550776394e is no longer needed. Author: Andres Freund <andres@anarazel.de> Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://postgr.es/m/20210408020913.zzprrlvqyvlt5cyy@alap3.anarazel.de
Diffstat (limited to 'src/include/replication')
-rw-r--r--src/include/replication/slot.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/include/replication/slot.h b/src/include/replication/slot.h
index 357068403a1..2eb7e3a530d 100644
--- a/src/include/replication/slot.h
+++ b/src/include/replication/slot.h
@@ -37,14 +37,6 @@ typedef enum ReplicationSlotPersistency
RS_TEMPORARY
} ReplicationSlotPersistency;
-/* For ReplicationSlotAcquire, q.v. */
-typedef enum SlotAcquireBehavior
-{
- SAB_Error,
- SAB_Block,
- SAB_Inquire
-} SlotAcquireBehavior;
-
/*
* On-Disk data of a replication slot, preserved across restarts.
*/
@@ -208,7 +200,7 @@ extern void ReplicationSlotCreate(const char *name, bool db_specific,
extern void ReplicationSlotPersist(void);
extern void ReplicationSlotDrop(const char *name, bool nowait);
-extern int ReplicationSlotAcquire(const char *name, SlotAcquireBehavior behavior);
+extern void ReplicationSlotAcquire(const char *name, bool nowait);
extern void ReplicationSlotRelease(void);
extern void ReplicationSlotCleanup(void);
extern void ReplicationSlotSave(void);