Changeset: 7e9274bbe6de for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/7e9274bbe6de Modified Files: monetdb5/mal/mal_profiler.c Branch: default Log Message:
don't flush (again) if we wrote the BLOCK auto flush size. diffs (15 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 @@ -68,8 +68,9 @@ static void logjsonInternal(char *logbuf MT_lock_set(&mal_profileLock); if (maleventstream) { // upon request the log record is sent over the profile stream - (void) mnstr_write(maleventstream, logbuffer, 1, len); - (void) mnstr_flush(maleventstream, MNSTR_FLUSH_DATA); + if (mnstr_write(maleventstream, logbuffer, 1, len) != BLOCK) /* if we wrote exactly the BLOCK size, it was + flushed allready */ + (void) mnstr_flush(maleventstream, MNSTR_FLUSH_DATA); } MT_lock_unset(&mal_profileLock); } _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list