Add logging of Manifest SQN at startup

This commit is contained in:
martinsumner 2017-01-14 22:26:26 +00:00
parent ea171cb13b
commit 7b0b3e9b83
2 changed files with 3 additions and 1 deletions

View file

@ -126,6 +126,8 @@
{"P0034", {"P0034",
{warn, "Snapshot with pid ~w timed out and so deletion will " {warn, "Snapshot with pid ~w timed out and so deletion will "
++ "continue regardless"}}, ++ "continue regardless"}},
{"P0035",
{info, "Startup with Manifest SQN of ~w~n"}},
{"PC001", {"PC001",
{info, "Penciller's clerk ~w started with owner ~w"}}, {info, "Penciller's clerk ~w started with owner ~w"}},
{"PC002", {"PC002",

View file

@ -610,7 +610,7 @@ start_from_file(PCLopts) ->
SQNFun), SQNFun),
leveled_log:log("P0014", [MaxSQN]), leveled_log:log("P0014", [MaxSQN]),
ManSQN = leveled_manifest:get_manifest_sqn(Manifest1), ManSQN = leveled_manifest:get_manifest_sqn(Manifest1),
leveled_log:log("P0035", [ManSQN]),
%% Find any L0 files %% Find any L0 files
L0FN = filepath(RootPath, ManSQN, new_merge_files) ++ "_0_0.sst", L0FN = filepath(RootPath, ManSQN, new_merge_files) ++ "_0_0.sst",
case filelib:is_file(L0FN) of case filelib:is_file(L0FN) of