Skip to content

Commit

Permalink
'static' does not make sense
Browse files Browse the repository at this point in the history
  • Loading branch information
arosh committed Jan 29, 2024
1 parent 10302cb commit 36f6e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/memcache/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void gc_thread::gc() {
// Putting the thread to sleep tens of microseconds with each loop is desired, but due to the precision of the timer,
// it's not appropriate to do sleep with each loop. The `initial_repl_sleep_delay` is accumulated until it
// exceeds 10000 microseconds (10 milliseconds), and then the thread is put to sleep all at once when this limit is exceeded.
static const std::uint64_t SLEEP_THRESHOLD = 10000;
const std::uint64_t SLEEP_THRESHOLD = 10000;
std::uint64_t sleep_sum = 0;

for( auto it = m_hash.begin(); it != m_hash.end(); ++it ) {
Expand Down

0 comments on commit 36f6e2d

Please sign in to comment.