diff options
author | Casey Bodley <cbodley@users.noreply.github.com> | 2024-08-26 17:12:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-26 17:12:27 +0200 |
commit | 6038615f4cf7435614e10f62a52f145811c04eb3 (patch) | |
tree | b44e31d3afd18ddeba711e45f82bcb1275fa01f2 /src/rgw/driver/rados/rgw_bucket.cc | |
parent | Merge pull request #59172 from clwluvw/enoent-loglevel (diff) | |
parent | rgw/rados: zero-init shard_count in RGWBucket::check_index_unlinked() (diff) | |
download | ceph-6038615f4cf7435614e10f62a52f145811c04eb3.tar.xz ceph-6038615f4cf7435614e10f62a52f145811c04eb3.zip |
Merge pull request #59117 from cbodley/wip-67468
rgw/rados: zero-init shard_count in RGWBucket::check_index_unlinked()
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Diffstat (limited to 'src/rgw/driver/rados/rgw_bucket.cc')
-rw-r--r-- | src/rgw/driver/rados/rgw_bucket.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/driver/rados/rgw_bucket.cc b/src/rgw/driver/rados/rgw_bucket.cc index 94d3066e5b5..ef5f70bdb47 100644 --- a/src/rgw/driver/rados/rgw_bucket.cc +++ b/src/rgw/driver/rados/rgw_bucket.cc @@ -953,7 +953,7 @@ int RGWBucket::check_index_unlinked(rgw::sal::RadosStore* const rados_store, if (shard >= max_shards) { return; } - uint64_t shard_count; + uint64_t shard_count = 0; int r = ::check_index_unlinked(rados_store, &*bucket, dpp, op_state, flusher, shard, &shard_count, yield); if (r < 0) { ldpp_dout(dpp, -1) << "ERROR: error processing shard " << shard << |