]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: restore readdir prints (move to dout)
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 22 Dec 2015 21:57:41 +0000 (16:57 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:07:17 +0000 (12:07 -0500)
They are useful for checking the exact strings being produced,
and in which sequence (object or common prefix).

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.h

index 87cbfbf43099ee4e921c4666a7d1c7b4e0601295..aeb734530b819fb2a57ed0ddcb30e3f941ec4a63 100644 (file)
@@ -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 */