diff --git a/src/leveled_pmanifest.erl b/src/leveled_pmanifest.erl index 9fb015d..adde690 100644 --- a/src/leveled_pmanifest.erl +++ b/src/leveled_pmanifest.erl @@ -123,7 +123,9 @@ close_manifest(Manifest, CloseEntryFun) -> save_manifest(Manifest, RootPath) -> FP = filepath(RootPath, Manifest#manifest.manifest_sqn, current_manifest), - ManBin = term_to_binary(Manifest), + ManBin = term_to_binary(Manifest#manifest{snapshots = [], + pending_deletes = dict:new(), + min_snapshot_sqn = 0}), CRC = erlang:crc32(ManBin), ok = file:write_file(FP, <>).