1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-18 13:54:11 +03:00

Checkpointing some paranoid assertions & some fixes I noticed.

This commit is contained in:
Patrick LeBlanc
2019-04-12 15:08:01 -05:00
parent 308a25c22b
commit 5443f8662c
8 changed files with 84 additions and 46 deletions

View File

@@ -257,6 +257,12 @@ void Synchronizer::process(list<string>::iterator name)
pending->opFlags, e.what());
success = false;
sleep(1);
continue;
/* TODO: Need to think this about this requeue logic again. The potential problem is that
there may be threads waiting for this job to finish. If the insert doesn't happen because
there is already a job in pendingOps for the same file, then the threads waiting on this
job never get woken, right?? Or, can that never happen for some reason?
*/
s.lock();
auto inserted = pendingOps.insert(pair<string, boost::shared_ptr<PendingOps> >(key, pending));
if (!inserted.second)