Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Oct 24, 2022
1 parent 6539ea3 commit dce8bbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/perf_counter/perf_counter_atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,7 @@ class perf_counter_number_percentile_atomic : public perf_counter
const boost::system::error_code &ec)
{
// as the callback is not in tls context, so the log system calls like LOG_INFO, dassert
// will
// cause a lock
// will cause a lock
if (!ec) {
calc(boost::make_shared<compute_context>());

Expand Down
4 changes: 2 additions & 2 deletions src/replica/duplication/mutation_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ void mutation_buffer::commit(decree d, commit_type ct)
// n+m(m>1) n+k(k>=m)
//
// just LOG_ERROR but not dassert if mutation loss or other problem, it's different from
// base
// class implement. And from the error and perf-counter, we can choose restart duplication
// base class implement. And from the error and perf-counter, we can choose restart
// duplication
// or ignore the loss.
if (next_committed_mutation == nullptr || !next_committed_mutation->is_logged()) {
derror_replica("mutation[{}] is lost in prepare_list: "
Expand Down

0 comments on commit dce8bbe

Please sign in to comment.