Content-Length: 252630 | pFad | http://github.com/m99coder/postgres_cluster/commit/976250e278313701c0fb111d6fb56539455f76b5

BF also fix possible overflow in MtmMinRecoveryLag · m99coder/postgres_cluster@976250e · GitHub
Skip to content

Commit 976250e

Browse files
committed
also fix possible overflow in MtmMinRecoveryLag
1 parent a422a23 commit 976250e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2100,7 +2100,7 @@ void MtmCheckRecoveryCaughtUp(int nodeId, lsn_t slotLSN)
21002100
if (MtmIsRecoveredNode(nodeId)) {
21012101
lsn_t walLSN = GetXLogInsertRecPtr();
21022102
if (!BIT_CHECK(Mtm->origenLockNodeMask, nodeId-1)
2103-
&& slotLSN + MtmMinRecoveryLag * 1024 > walLSN)
2103+
&& slotLSN + (long64) MtmMinRecoveryLag * 1024 > walLSN)
21042104
{
21052105
/*
21062106
* Wal sender almost caught up.

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/m99coder/postgres_cluster/commit/976250e278313701c0fb111d6fb56539455f76b5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy