1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-02 17:22:27 +03:00

Wrote a version of mergejournal that uses more mem but reduces the io op

requirement.  Added a safety valve; if the journal file is > 100MB, it
will fall back to the previous IO op heavy but mem friendly version.

This also includes a compiler warning fix for smls & smput.
This commit is contained in:
Patrick LeBlanc
2019-08-22 16:38:27 -05:00
parent fa0da4b9bb
commit 281443cb0a
5 changed files with 129 additions and 39 deletions

View File

@ -669,7 +669,8 @@ void Synchronizer::synchronizeWithJournal(const string &sourceFile, list<string>
count += err;
}
numBytesWritten += size;
cache->rename(prefix, cloudKey, newCloudKey, size - bf::file_size(oldCachePath));
assert(bf::file_size(oldCachePath) == MetadataFile:getLengthFromKey(cloudKey));
cache->rename(prefix, cloudKey, newCloudKey, size - MetadataFile::getLengthFromKey(cloudKey));
replicator->remove(oldCachePath);
}