Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
reduce likelihood of corrupting tail end of block_log by flushing aft…
Browse files Browse the repository at this point in the history
…er each block append
  • Loading branch information
arhag committed May 21, 2018
1 parent cd97982 commit 69f98c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/chain/block_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ namespace eosio { namespace chain {
my->head = b;
my->head_id = b->id();

flush();

return pos;
}
FC_LOG_AND_RETHROW()
Expand Down

0 comments on commit 69f98c5

Please sign in to comment.