Skip to content

Commit 8a79535

Browse files
author
Maitrayi Sabaratnam
committed
Bug#35641420 NDB: No warning is provided when the oldest restorable GCI reaches its maximum
Post push fix for compilation problem (NDB 7.6 only). Reviewed by: Frazer Clement <[email protected]> Change-Id: I02a0823b150e34385f2d9188cdc55c38813dc64e
1 parent 6708e51 commit 8a79535

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16832,9 +16832,9 @@ Dbdih::startGcpLab(Signal* signal)
1683216832
{
1683316833
jam();
1683416834
const Uint64 currVal = m_micro_gcp.m_master.m_new_gci >> 32;
16835-
Uint64 newVal = 0;
16836-
// Boost to just below the first warning gci
16837-
newVal = std::max(currVal, Uint64(next_warn_save_gci - 4));
16835+
// Boost the GCI to just below the first warning gci
16836+
Uint64 newVal = Uint64(next_warn_save_gci - 4);
16837+
if (newVal < currVal) { newVal = currVal; };
1683816838
m_micro_gcp.m_master.m_new_gci = newVal << 32;
1683916839
g_eventLogger->info("DIH Err-Ins: Incrementing GCI from %llu to %llu. ",
1684016840
currVal,

0 commit comments

Comments
 (0)