Sort out different timestamps

This commit is contained in:
martinsumner 2016-12-20 23:16:52 +00:00
parent 060ce2e263
commit c193962c92

View file

@ -432,7 +432,7 @@ put_object(LedgerKey, Object, KeyChanges, State) ->
State#state{journal_sqn=NewSQN, put_timing=UpdPutTimings}, State#state{journal_sqn=NewSQN, put_timing=UpdPutTimings},
byte_size(JournalBin)}; byte_size(JournalBin)};
roll -> roll ->
SW = os:timestamp(), SWroll = os:timestamp(),
CDBopts = State#state.cdb_options, CDBopts = State#state.cdb_options,
ManEntry = start_new_activejournal(NewSQN, ManEntry = start_new_activejournal(NewSQN,
State#state.root_path, State#state.root_path,
@ -445,7 +445,7 @@ put_object(LedgerKey, Object, KeyChanges, State) ->
ok = leveled_cdb:cdb_put(NewJournalP, ok = leveled_cdb:cdb_put(NewJournalP,
JournalKey, JournalKey,
JournalBin), JournalBin),
leveled_log:log_timer("I0008", [], SW), leveled_log:log_timer("I0008", [], SWroll),
{rolling, {rolling,
State#state{journal_sqn=NewSQN, State#state{journal_sqn=NewSQN,
manifest=NewManifest, manifest=NewManifest,