8000 Wait for max lsn still wip · pct960/postgres@55b0c46 · GitHub
[go: up one dir, main page]

Skip to content

Commit 55b0c46

Browse files
committed
Wait for max lsn still wip
1 parent 4fb9b95 commit 55b0c46

File tree

1 file changed

+3
-1
lines changed
  • src/backend/access/transam

1 file changed

+3
-1
lines changed

src/backend/access/transam/xact.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
#include "replication/snapbuild.h"
5252
#include "replication/syncrep.h"
5353
#include "replication/walsender.h"
54+
#include "replication/walsender.h"
55+
#include "replication/walsender_private.h"
5456
#include "storage/condition_variable.h"
5557
#include "storage/fd.h"
5658
#include "storage/lmgr.h"
@@ -1358,7 +1360,7 @@ RecordTransactionCommit(void)
13581360
if (!wrote_xlog && synchronous_commit > SYNCHRONOUS_COMMIT_OFF)
13591361
{
13601362
XLogRecPtr maxLSN = XLogGetMaxLSN(NULL);
1361-
//SyncRepWaitForLSN(maxLSN, false);
1363+
//SyncRepWaitForLSN(WalSndCtl->lsn[1] + 1, false);
13621364
elog(INFO, "RO txn maxLSN = (%d), XactLastRecEnd value = (%d)", maxLSN, XactLastRecEnd);
13631365
}
13641366
if (!wrote_xlog)

0 commit comments

Comments
 (0)
0