Skip to content

Commit

Permalink
use atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteYue committed Jul 12, 2024
1 parent a323207 commit 13f3b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud/src/recycler/recycler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ int InstanceRecycler::recycle_versions() {
int InstanceRecycler::recycle_tablets(int64_t table_id, int64_t index_id, int64_t partition_id,
bool is_empty_tablet) {
int num_scanned = 0;
int num_recycled = 0;
std::atomic_int num_recycled = 0;

std::string tablet_key_begin, tablet_key_end;
std::string stats_key_begin, stats_key_end;
Expand Down

0 comments on commit 13f3b11

Please sign in to comment.