Add log of write ops

This commit is contained in:
Martin Sumner 2016-11-26 22:59:33 +00:00
parent feb7149a8d
commit 8f83c5226d
2 changed files with 4 additions and 1 deletions

View file

@ -230,6 +230,7 @@ starting({open_writer, Filename}, _From, State) ->
leveled_log:log("CDB01", [Filename]),
{LastPosition, HashTree, LastKey} = open_active_file(Filename),
WriteOps = set_writeops(State#state.sync_strategy),
leveled_log:log("CDB13", [WriteOps]),
{ok, Handle} = file:open(Filename, WriteOps),
{reply, ok, writer, State#state{handle=Handle,
last_position=LastPosition,

View file

@ -256,7 +256,9 @@
{"CDB11",
{info, "CRC check failed due to size"}},
{"CDB12",
{inof, "HashTree written"}}
{info, "HashTree written"}},
{"CDB13",
{info, "Write options of ~w"}}
])).