diff options
| author | Alvaro Herrera | 2018-02-19 21:00:53 +0000 |
|---|---|---|
| committer | Alvaro Herrera | 2018-02-20 01:25:27 +0000 |
| commit | 6f1d723b6359507ef55a81617167507bc25e3e2b (patch) | |
| tree | 23be317dbb87486b56eaf92f94608989385fe726 /src | |
| parent | 159efe4af4509741c25d6b95ddd9fda86facce42 (diff) | |
Fix crash in pg_replication_slot_advance
We were trying to use a LSN variable after releasing its containing slot
structure.
Reported by: tushar
Author: amul sul
Reviewed-by: Petr Jelinek, Masahiko Sawada
Discussion: https://postgr.es/m/94ba999c-f76a-0423-6523-b8d531dfe4c7@enterprisedb.com
Diffstat (limited to 'src')
| -rw-r--r-- | src/backend/replication/slotfuncs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/replication/slotfuncs.c b/src/backend/replication/slotfuncs.c index cf2195bc93f..e873dd1f81a 100644 --- a/src/backend/replication/slotfuncs.c +++ b/src/backend/replication/slotfuncs.c @@ -480,8 +480,7 @@ pg_replication_slot_advance(PG_FUNCTION_ARGS) (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot move slot to %X/%X, minimum is %X/%X", (uint32) (moveto >> 32), (uint32) moveto, - (uint32) (MyReplicationSlot->data.confirmed_flush >> 32), - (uint32) (MyReplicationSlot->data.confirmed_flush)))); + (uint32) (startlsn >> 32), (uint32) startlsn))); } if (OidIsValid(MyReplicationSlot->data.database)) |
