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

Fixed another race. Also shortened the interval Sync creates new jobs.

In this one, if a read, then a delete happened on an object being flushed
by makeSpace(), it would leave the toBeDeleted struct with an invalid
list iterator.
This commit is contained in:
Patrick LeBlanc
2019-07-03 17:18:14 -05:00
parent 56a51605af
commit aa65090a61
2 changed files with 7 additions and 17 deletions

View File

@@ -85,7 +85,7 @@ class Synchronizer : public boost::noncopyable
// this thread will start jobs for entries in pendingOps every 10 seconds
bool die;
boost::thread syncThread;
const boost::chrono::seconds syncInterval = boost::chrono::seconds(10);
const boost::chrono::seconds syncInterval = boost::chrono::seconds(1);
void periodicSync();
SMLogging *logger;