1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-834 Fix crashes introduced

* Fix race condition in cleanup
* Fix mutex cleanup crash
This commit is contained in:
Andrew Hutchings
2017-07-27 23:22:45 +01:00
parent fd018011a7
commit bc80fd99dc
3 changed files with 13 additions and 6 deletions

View File

@ -121,7 +121,7 @@ class BatchPrimitiveProcessor
// these two functions are used by BPPV to create BPP instances
// on demand. TRY not to use unlock() for anything else.
void unlock() { objLock.unlock(); }
void unlock() { objLock.try_lock(); objLock.unlock(); }
bool hasJoin() { return doJoin; }
private:
BatchPrimitiveProcessor();