Changeset: 5bd0c5e9dba3 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5bd0c5e9dba3
Modified Files:
        monetdb5/mal/mal_recycle.c
Branch: default
Log Message:

Use atomic instruction always for changing statements, don't
incorrectly reinitialize locks.


diffs (16 lines):

diff --git a/monetdb5/mal/mal_recycle.c b/monetdb5/mal/mal_recycle.c
--- a/monetdb5/mal/mal_recycle.c
+++ b/monetdb5/mal/mal_recycle.c
@@ -914,11 +914,7 @@ RECYCLEdrop(Client cntxt){
        recyclerMemoryUsed = 0;
        recyclerSavings = 0;
        recycled = 0;
-       statements = 0;
-#ifdef ATOMIC_LOCK
-       statementsLock MT_LOCK_INITIALIZER("statementsLock");
-#endif
-       statements = 0;
+       ATOMIC_SET(statements, 0, statementsLock);
        recycleSearchTime =0;   /* cache search time in ms*/
        recycleSearchCalls =0;  
        bindRef = 0, bind_idxRef = 0, sqlRef = 0;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to