Skip to content

Commit 83b59ca

Browse files
knizhnikkelvich
authored andcommitted
Fix bug in monotonic sequences support
1 parent 76741a1 commit 83b59ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pglogical_apply.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,11 +1161,13 @@ void MtmExecutor(void* work, size_t size)
11611161
case 'N':
11621162
{
11631163
int64 next;
1164+
Oid relid;
11641165
Assert(rel != NULL);
1165-
next = pq_getmsgint64(&s);
1166-
AdjustSequence(RelationGetRelid(rel), next);
1166+
relid = RelationGetRelid(rel);
11671167
close_rel(rel);
11681168
rel = NULL;
1169+
next = pq_getmsgint64(&s);
1170+
AdjustSequence(relid, next);
11691171
break;
11701172
}
11711173
case '0':

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy