Merge pull request #29094 from cbodley/wip-40806

radosgw-admin: bucket sync status not 'caught up' during full sync

Reviewed-by: Shilpa Jagannath <smanjara@redhat.com>
This commit is contained in:
Casey Bodley 2019-08-20 10:19:07 -04:00 committed by GitHub
commit 0849b0e8df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2481,11 +2481,11 @@ static int bucket_source_sync_status(rgw::sal::RGWRadosStore *store, const RGWZo
shards_behind.insert(shard_id);
}
}
if (shards_behind.empty()) {
out << indented{width} << "bucket is caught up with source\n";
} else {
if (!shards_behind.empty()) {
out << indented{width} << "bucket is behind on " << shards_behind.size() << " shards\n";
out << indented{width} << "behind shards: [" << shards_behind << "]\n" ;
} else if (!num_full) {
out << indented{width} << "bucket is caught up with source\n";
}
return 0;
}