]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: remove the first if judgment about api::group::list 38898/head
authorpkulijiawei <lijiawei1@chinatelecom.cn>
Thu, 14 Jan 2021 07:33:54 +0000 (15:33 +0800)
committerpkulijiawei <lijiawei1@chinatelecom.cn>
Thu, 14 Jan 2021 07:33:54 +0000 (15:33 +0800)
fixed:https://tracker.ceph.com/issues/48866
Reviewed-by: wuxuehan@chinatelecom.cn
Signed-off-by: pkulijiawei <lijiawei1@chinatelecom.cn>
src/librbd/api/Group.cc

index aa341bc25328a7de36dbb145f7520ac88529eb71..53569514d5f1d4c6db712b849b17d18a884e46c7 100644 (file)
@@ -583,9 +583,6 @@ int Group<I>::list(IoCtx& io_ctx, vector<string> *names)
     map<string, string> groups;
     r = cls_client::group_dir_list(&io_ctx, RBD_GROUP_DIRECTORY, last_read,
                                    max_read, &groups);
-    if (r == -ENOENT) {
-      return 0; // Ignore missing rbd group directory. It means we don't have any groups yet.
-    }
     if (r < 0) {
       if (r != -ENOENT) {
         lderr(cct) << "error listing group in directory: "