]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw:modify command stucking when operating radosgw-admin metadata list user 7032/head
authorroot <liu.peiyang@h3c.com>
Wed, 6 Jan 2016 03:13:53 +0000 (11:13 +0800)
committerroot <liu.peiyang@h3c.com>
Wed, 6 Jan 2016 03:56:43 +0000 (11:56 +0800)
When no user exists,the command stucks by operating radosgw-admin metadata list user. It seems all right now.

Signed-off-by: Peiyang Liu <liu.peiyang@h3c.com>
src/rgw/rgw_user.cc

index 99c343b2f3a7f67fe3cc4b18c7db6aefb72dfbbe..b6d096b7cf76c8fbe8db4b182a45307ec1226650 100644 (file)
@@ -2632,8 +2632,13 @@ public:
 
     int ret = store->list_raw_objects(store->zone.user_uid_pool, no_filter,
                                       max, info->ctx, unfiltered_keys, truncated);
-    if (ret < 0)
-      return ret;
+    if (ret < 0 && ret != -ENOENT)
+      return ret;                      
+    if (ret == -ENOENT) {
+      if (truncated)
+        *truncated = false;
+      return -ENOENT;
+    }
 
     // now filter out the buckets entries
     list<string>::iterator iter;