Add log of write ops
This commit is contained in:
parent
feb7149a8d
commit
8f83c5226d
2 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -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"}}
|
||||
|
||||
])).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue