We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parentsf7a2658 +7c0cf2e commit4914097Copy full SHA for 4914097
contrib/mmts/multimaster.c
@@ -2035,7 +2035,7 @@ MtmCheckSlots()
2035
if (slot->in_use
2036
&&sscanf(slot->data.name.data,MULTIMASTER_SLOT_PATTERN,&nodeId)==1
2037
&&BIT_CHECK(Mtm->disabledNodeMask,nodeId-1)
2038
-&&slot->data.confirmed_flush+MtmMaxRecoveryLag*1024<GetXLogInsertRecPtr()
+&&slot->data.confirmed_flush+(long64)MtmMaxRecoveryLag*1024<GetXLogInsertRecPtr()
2039
&&slot->data.confirmed_flush!=0)
2040
{
2041
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)
2104
if (MtmIsRecoveredNode(nodeId)) {
2105
lsn_twalLSN=GetXLogInsertRecPtr();
2106
if (!BIT_CHECK(Mtm->originLockNodeMask,nodeId-1)
2107
-&&slotLSN+MtmMinRecoveryLag*1024>walLSN)
+&&slotLSN+(long64)MtmMinRecoveryLag*1024>walLSN)
2108
2109
/*
2110
* Wal sender almost caught up.