]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: fix error param of ioctx when passing to `list_descendants`
authorsongweibin <song.weibin@zte.com.cn>
Thu, 15 Aug 2019 06:35:05 +0000 (14:35 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 24 Jan 2020 16:14:18 +0000 (17:14 +0100)
Signed-off-by: songweibin <song.weibin@zte.com.cn>
(cherry picked from commit b7ac8a17ef0b0602301eebea0e2e3c8032889174)

src/librbd/api/Image.cc

index ac781390b974d9b29f80077964b3bd1be84dbd6b..9bb4439f5ed42dd30e453e817d8ff43b8b4829df 100644 (file)
@@ -414,7 +414,7 @@ int Image<I>::list_descendants(
     for (auto& image_id : image_ids) {
       images->push_back({
         it.first, "", ictx->md_ctx.get_namespace(), image_id, "", false});
-      r = list_descendants(ictx->md_ctx, image_id, child_max_level, images);
+      r = list_descendants(ioctx, image_id, child_max_level, images);
       if (r < 0) {
         return r;
       }