]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: don't sent -ENOENT when listing meta section 21647/head
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 25 Apr 2018 15:48:22 +0000 (08:48 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Wed, 25 Apr 2018 15:50:32 +0000 (08:50 -0700)
The otp and user sections (unlike the bucket and bucket.index
sections) returned -ENOENT when section was empty. Just return
empty result.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_otp.cc
src/rgw/rgw_user.cc

index 73f10af71fc9ec260edc244720a8605fecac8420..b90dd1b44148385adfcb6fb40ec6685922e42a9d 100644 (file)
@@ -128,7 +128,7 @@ public:
     if (ret == -ENOENT) {
       if (truncated)
         *truncated = false;
-      return -ENOENT;
+      return 0;
     }
 
     return 0;
index f2d418612369415e3cf42d4e3abb775579b2cf90..29b59454c751b6e8078b89d79f20d65d0c80772a 100644 (file)
@@ -2793,7 +2793,7 @@ public:
     if (ret == -ENOENT) {
       if (truncated)
         *truncated = false;
-      return -ENOENT;
+      return 0;
     }
 
     // now filter out the buckets entries