You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-27 21:01:50 +03:00
MCOL-3829: CS not starting correctly if rebooted at specific point
Found that the IDBDataFile path in BRM journal writing code needs to seek to the end of the file before writing. If save_brm is run (as it is during init), it truncates the journal file, but the workernode retained its original offset, resulting in the front of the file being 0-filled on the next journal write. Load_brm can't load that.
This commit is contained in:
@ -2266,7 +2266,7 @@ void SlaveComm::saveDelta()
|
||||
{
|
||||
uint32_t len = delta.length();
|
||||
|
||||
|
||||
journalh->seek(0, SEEK_END);
|
||||
journalh->write((const char*) &len, sizeof(len));
|
||||
journalh->write((const char*) delta.buf(), delta.length());
|
||||
journalh->flush();
|
||||
|
Reference in New Issue
Block a user