1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-13 23:02:14 +03:00

Changed the sync trigger to include outstanding journal size.

Right now it's hardcoded at 50MB for testing.  Will parameterize later.
This commit is contained in:
Patrick LeBlanc
2019-07-05 11:02:55 -05:00
parent aa65090a61
commit 62c853595f
4 changed files with 36 additions and 20 deletions

View File

@@ -1041,7 +1041,7 @@ bool syncTest1()
assert(!err);
assert(exists);
sync->newJournalEntry(key);
sync->newJournalEntry(key, 0);
sync->forceFlush();
sleep(1); // let it do what it does
@@ -1080,7 +1080,7 @@ bool syncTest1()
// make the journal again, call sync->newJournalObject()
makeTestJournal((journalPath / (newKey + ".journal")).string().c_str());
cache->newJournalEntry(bf::file_size(journalPath / (newKey + ".journal")));
sync->newJournalEntry(newKey);
sync->newJournalEntry(newKey, 0);
sync->forceFlush();
sleep(1);