Changeset: b74228236831 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b74228236831
Modified Files:
monetdb5/mal/mal_profiler.c
Branch: profiler
Log Message:
When you unset a lock, you first have to set it.
This probably fixes bug 3795.
diffs (19 lines):
diff --git a/monetdb5/mal/mal_profiler.c b/monetdb5/mal/mal_profiler.c
--- a/monetdb5/mal/mal_profiler.c
+++ b/monetdb5/mal/mal_profiler.c
@@ -151,6 +151,7 @@ static void logjsonInternal(int k, char
strncpy(s+1, buf,strlen(buf));
len = strlen(logbuffer);
+ MT_lock_set(&mal_profileLock, "logjson");
if (eventstream) {
// upon request the log record is sent over the profile stream
if( eventcounter == 0){
@@ -173,6 +174,7 @@ static void logjsonInternal(int k, char
profilerPool[k].trace =
open_wastream(profilerPool[k].fname);
if( profilerPool[k].trace == NULL){
GDKerror("could not create profiler file");
+ MT_lock_unset(&mal_profileLock, "logjson");
return;
}
profilerPool[k].start = GDKusec();
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list