Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
minor chagne. done with my due
Browse files Browse the repository at this point in the history
  • Loading branch information
Guihao Liang committed May 8, 2020
1 parent 471b0b9 commit 08632c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/storage/fileio/read_caching_device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class StopWatch {
}

if (!threads_.insert(std::this_thread::get_id()).second) {
logstream(LOG_ERROR) << "this thread " << std::this_thread::get_id()
logstream(LOG_DEBUG) << "this thread " << std::this_thread::get_id()
<< "already starts the clock" << std::endl;
}
}
Expand Down Expand Up @@ -140,7 +140,7 @@ class StopWatch {

// singleton destroyed since it's non-copy and movable,
// any dangling pointer or reference to this stop_watah is illegal
~StopWatch() { stop(true); }
~StopWatch() { stop(/*no throw */ true); }

private:
uint64_t interval_;
Expand Down

0 comments on commit 08632c6

Please sign in to comment.