Changeset: 23aa1f047bf0 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=23aa1f047bf0
Modified Files:
sql/storage/store.c
Branch: makelibstreamgreatagain
Log Message:
Make compressed snapshots more amenable to rsync
By not recording a modification time for the member files
and by resetting the compression context between member files.
diffs (20 lines):
diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -2623,7 +2623,7 @@ hot_snapshot_write_tar(stream *out, cons
{
gdk_return ret = GDK_FAIL;
const char *p = plan; // our cursor in the plan
- time_t timestamp = time(NULL);
+ time_t timestamp = 0;
// Name convention: _path for the absolute path
// and _name for the corresponding local relative path
char abs_src_path[2 * FILENAME_MAX];
@@ -2671,6 +2671,7 @@ hot_snapshot_write_tar(stream *out, cons
GDKerror("Unknown command in snapshot plan: %c
(%s)", command, src_name);
goto end;
}
+ mnstr_flush(out, MNSTR_FLUSH_ALL);
}
// write a trailing block of zeros. If it succeeds, this function
succeeds.
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list