Changeset: bc6a1c29567c for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=bc6a1c29567c Modified Files: sql/storage/bat/bat_logger.c Branch: hot-snapshot Log Message:
Include the database dir in the plan diffs (22 lines): diff --git a/sql/storage/bat/bat_logger.c b/sql/storage/bat/bat_logger.c --- a/sql/storage/bat/bat_logger.c +++ b/sql/storage/bat/bat_logger.c @@ -408,6 +408,18 @@ static const char* bl_snapshot(stream *plan) { const char *err; + char *db_dir; + size_t db_dir_len; + + // UH OH Is it always 0? It seems dbfarm is 0 and dbextra is 1 + // but that may not be carved in stone. + db_dir = GDKfilepath(0, NULL, "", NULL); + db_dir_len = strlen(db_dir); + if (db_dir[db_dir_len - 1] == DIR_SEP) + db_dir[db_dir_len - 1] = '\0'; + + mnstr_printf(plan, "%s\n", db_dir); + GDKfree(db_dir); err = snapshot_wal(plan); if (err) _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list