From b970fd005e835f8aeb6b3af2a1b4afbd50c31348 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Tue, 22 Dec 2015 16:57:41 -0500 Subject: [PATCH] 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 --- src/rgw/rgw_file.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */ -- 2.47.3