boost::string_ref sref {iter.key.name};
+ lsubdout(cct, rgw, 15) << "readdir objects prefix: " << prefix
+ << " obj: " << sref << dendl;
+
size_t last_del = sref.find_last_of('/');
if (last_del != string::npos)
sref.remove_prefix(last_del+1);
}
for (auto& iter : common_prefixes) {
+ lsubdout(cct, rgw, 15) << "readdir common prefixes prefix: " << prefix
+ << " iter first: " << iter.first
+ << " iter second: " << iter.second
+ << dendl;
+
/* it's safest to modify the element in place--a suffix-modifying
* string_ref operation is problematic since ULP rgw_file callers
* will ultimately need a c-string */