From: Matt Benjamin Date: Tue, 22 Dec 2015 21:57:41 +0000 (-0500) Subject: librgw: restore readdir prints (move to dout) X-Git-Tag: v10.1.0~382^2~74 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b970fd005e835f8aeb6b3af2a1b4afbd50c31348;p=ceph.git librgw: restore readdir prints (move to dout) They are useful for checking the exact strings being produced, and in which sequence (object or common prefix). Signed-off-by: Matt Benjamin --- diff --git a/src/rgw/rgw_file.h b/src/rgw/rgw_file.h index 87cbfbf43099..aeb734530b81 100644 --- a/src/rgw/rgw_file.h +++ b/src/rgw/rgw_file.h @@ -921,6 +921,9 @@ public: 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); @@ -945,6 +948,11 @@ public: } 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 */