Changeset: 10a8b885296a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=10a8b885296a
Modified Files:
        sql/storage/bat/bat_logger.c
Branch: hot-snapshot
Log Message:

Use commands in plan

Not just file names.
Currently only the 'c' (copy) command, later we'll add 'w' (write).


diffs (21 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
@@ -345,7 +345,7 @@ bl_reload_shared(void)
 static void
 snapshot_file(stream *plan, char *name, long extent)
 {
-       mnstr_printf(plan, "%ld %s\n", extent, name);
+       mnstr_printf(plan, "c %ld %s\n", extent, name);
 }
 
 static void
@@ -353,7 +353,7 @@ snapshot_heap(stream *plan, Heap *heap)
 {
        long extent = heap->free;
        char *name = heap->filename;
-       mnstr_printf(plan, "%ld %s%c%s\n", extent, BATDIR, DIR_SEP, name);
+       mnstr_printf(plan, "c %ld %s%c%s\n", extent, BATDIR, DIR_SEP, name);
 }
 
 static const char*
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to