Skip to content

Commit 36711cc

Browse files
authored
Merge pull request ceph#44408 from linuxbox2/wip-rgwlc-warn-attr
rgwlc: warn on missing RGW_ATTR_LC Reviewed-by: Daniel Gryniewicz <[email protected]> Reviewed-by: J. Eric Ivancich <[email protected]>
2 parents 5f32eb2 + ae1a75c commit 36711cc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/rgw/rgw_lc.cc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,9 +1749,14 @@ int RGWLC::bucket_lc_process(string& shard_id, LCWorker* worker,
17491749
return -ENOENT;
17501750
}
17511751

1752-
map<string, bufferlist>::iterator aiter = bucket->get_attrs().find(RGW_ATTR_LC);
1753-
if (aiter == bucket->get_attrs().end())
1752+
map<string, bufferlist>::iterator aiter
1753+
= bucket->get_attrs().find(RGW_ATTR_LC);
1754+
if (aiter == bucket->get_attrs().end()) {
1755+
ldpp_dout(this, 0) << "WARNING: bucket_attrs.find(RGW_ATTR_LC) failed for "
1756+
<< bucket_name << " (terminates bucket_lc_process(...))"
1757+
<< dendl;
17541758
return 0;
1759+
}
17551760

17561761
bufferlist::const_iterator iter{&aiter->second};
17571762
try {

0 commit comments

Comments
 (0)