]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: use snap_remove implementation from internal 12035/head
authorVictor Denisov <denisovenator@gmail.com>
Thu, 17 Nov 2016 01:07:58 +0000 (17:07 -0800)
committerVictor Denisov <denisovenator@gmail.com>
Thu, 17 Nov 2016 01:13:39 +0000 (17:13 -0800)
Signed-off-by: Victor Denisov <denisovenator@gmail.com>
src/librbd/librbd.cc

index ae9d63b25ce8344f1c29217488eef147b12a33a1..91bfd2b748356fc06833633c31e728d118d53039 100644 (file)
@@ -2377,7 +2377,8 @@ extern "C" int rbd_snap_remove(rbd_image_t image, const char *snap_name)
 {
   librbd::ImageCtx *ictx = (librbd::ImageCtx *)image;
   tracepoint(librbd, snap_remove_enter, ictx, ictx->name.c_str(), ictx->snap_name.c_str(), ictx->read_only, snap_name);
-  int r = ictx->operations->snap_remove(snap_name);
+  librbd::NoOpProgressContext prog_ctx;
+  int r = librbd::snap_remove(ictx, snap_name, 0, prog_ctx);
   tracepoint(librbd, snap_remove_exit, r);
   return r;
 }