Commit e077bb49 authored by Davi Arnaut's avatar Davi Arnaut

Bug#44952: Ndbd file system inconsistency error

Backport a ndb patch: fix bug with crash during restart, where
a mbyte incorrectly could be skipped, leading to "end of log
wo/ finding gci".
parent aca9b35f
...@@ -14577,7 +14577,7 @@ void Dblqh::srLogLimits(Signal* signal) ...@@ -14577,7 +14577,7 @@ void Dblqh::srLogLimits(Signal* signal)
while(true) { while(true) {
ndbrequire(tmbyte < 16); ndbrequire(tmbyte < 16);
if (logPartPtr.p->logExecState == LogPartRecord::LES_SEARCH_STOP) { if (logPartPtr.p->logExecState == LogPartRecord::LES_SEARCH_STOP) {
if (logFilePtr.p->logMaxGciCompleted[tmbyte] < logPartPtr.p->logLastGci) { if (logFilePtr.p->logMaxGciCompleted[tmbyte] <= logPartPtr.p->logLastGci) {
jam(); jam();
/* -------------------------------------------------------------------- /* --------------------------------------------------------------------
* WE ARE STEPPING BACKWARDS FROM MBYTE TO MBYTE. THIS IS THE FIRST * WE ARE STEPPING BACKWARDS FROM MBYTE TO MBYTE. THIS IS THE FIRST
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment