]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committersongweibin <song.weibin@zte.com.cn>
Mon, 19 Aug 2019 11:25:49 +0000 (19:25 +0800)
Signed-off-by: songweibin <song.weibin@zte.com.cn>
src/librbd/api/Image.cc

index 69e9f80b29c38a881dc9571d87091e4979c6c524..713042825e8a8c53290e01d0e984a69406a84967 100644 (file)
@@ -394,7 +394,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;
       }