Skip to content

Commit 6038615

Browse files
authored
Merge pull request ceph#59117 from cbodley/wip-67468
rgw/rados: zero-init shard_count in RGWBucket::check_index_unlinked() Reviewed-by: Daniel Gryniewicz <[email protected]>
2 parents e88df21 + 857a63f commit 6038615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rgw/driver/rados/rgw_bucket.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ int RGWBucket::check_index_unlinked(rgw::sal::RadosStore* const rados_store,
953953
if (shard >= max_shards) {
954954
return;
955955
}
956-
uint64_t shard_count;
956+
uint64_t shard_count = 0;
957957
int r = ::check_index_unlinked(rados_store, &*bucket, dpp, op_state, flusher, shard, &shard_count, yield);
958958
if (r < 0) {
959959
ldpp_dout(dpp, -1) << "ERROR: error processing shard " << shard <<

0 commit comments

Comments
 (0)