Changeset: 417b0a9deacf for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=417b0a9deacf Modified Files: monetdb5/modules/mal/wlc.c Branch: default Log Message:
Force a sync on the stream to be sure. diffs (20 lines): diff --git a/monetdb5/modules/mal/wlc.c b/monetdb5/modules/mal/wlc.c --- a/monetdb5/modules/mal/wlc.c +++ b/monetdb5/modules/mal/wlc.c @@ -270,6 +270,8 @@ str WLCsetConfig(void){ mnstr_printf(fd,"state=%d\n", wlc_state ); mnstr_printf(fd,"batches=%d\n", wlc_batches ); mnstr_printf(fd,"beat=%d\n", wlc_beat ); + (void) mnstr_flush(wlc_fd); + (void) mnstr_fsync(wlc_fd); close_stream(fd); return MAL_SUCCEED; } @@ -577,6 +579,7 @@ WLCpreparewrite(Client cntxt) MT_lock_set(&wlc_lock); printFunction(wlc_fd, cntxt->wlc, 0, LIST_MAL_CALL ); (void) mnstr_flush(wlc_fd); + (void) mnstr_fsync(wlc_fd); // close file if no delay is allowed if( wlc_beat == 0 ) msg = WLCcloselogger(); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list