Changeset: 45bcc254a24c for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=45bcc254a24c Modified Files: monetdb5/mal/mal_profiler.c Branch: Jan2014 Log Message:
Stop profiling when the event can not be delivered (grafted from 10d8641276e54d3d20d058bd011566fd38a1df17) diffs (25 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 @@ -216,16 +216,17 @@ deactivateCounter(str name) } while (0) static void logsend(char *logbuffer) -{ +{ int error=0; if (eventstream) { MT_lock_set(&mal_profileLock, "logsend"); eventcounter++; if (profileCounter[PROFevent].status && eventcounter) - mnstr_printf(eventstream,"[ %d,\t%s", eventcounter, logbuffer); + error= mnstr_printf(eventstream,"[ %d,\t%s", eventcounter, logbuffer); else - mnstr_printf(eventstream,"[ %s", logbuffer); - mnstr_flush(eventstream); + error= mnstr_printf(eventstream,"[ %s", logbuffer); + error= mnstr_flush(eventstream); MT_lock_unset(&mal_profileLock, "logsend"); + if ( error) stopProfiling(); } } _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list