Skip to content

Commit

Permalink
Merge pull request #928 from AntelopeIO/GH-596-ship-flush-3.2
Browse files Browse the repository at this point in the history
[3.2] SHiP flush logs on write
  • Loading branch information
heifner authored Mar 31, 2023
2 parents f1cc518 + efd642b commit 4359bc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/state_history/include/eosio/state_history/log.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ class state_history_log {
const uint32_t num_blocks_in_log = _end_block - _begin_block;
fc::raw::pack(log, num_blocks_in_log);
}

log.flush();
index.flush();
}

// returns cfile positioned at payload
Expand Down

0 comments on commit 4359bc0

Please sign in to comment.