Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4914097

Browse files
committed
Merge branch 'PGPROEE9_6_MULTIMASTER' into PGPROEE9_6
2 parentsf7a2658 +7c0cf2e commit4914097

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎contrib/mmts/multimaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,7 +2035,7 @@ MtmCheckSlots()
20352035
if (slot->in_use
20362036
&&sscanf(slot->data.name.data,MULTIMASTER_SLOT_PATTERN,&nodeId)==1
20372037
&&BIT_CHECK(Mtm->disabledNodeMask,nodeId-1)
2038-
&&slot->data.confirmed_flush+MtmMaxRecoveryLag*1024<GetXLogInsertRecPtr()
2038+
&&slot->data.confirmed_flush+(long64)MtmMaxRecoveryLag*1024<GetXLogInsertRecPtr()
20392039
&&slot->data.confirmed_flush!=0)
20402040
{
20412041
MTM_ELOG(WARNING,"Drop slot for node %d which lag %lld B is larger than threshold %d kB",
@@ -2104,7 +2104,7 @@ void MtmCheckRecoveryCaughtUp(int nodeId, lsn_t slotLSN)
21042104
if (MtmIsRecoveredNode(nodeId)) {
21052105
lsn_twalLSN=GetXLogInsertRecPtr();
21062106
if (!BIT_CHECK(Mtm->originLockNodeMask,nodeId-1)
2107-
&&slotLSN+MtmMinRecoveryLag*1024>walLSN)
2107+
&&slotLSN+(long64)MtmMinRecoveryLag*1024>walLSN)
21082108
{
21092109
/*
21102110
* Wal sender almost caught up.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp