From bf9541a1f03ddce57fc53a3e077605bba9c8e6b9 Mon Sep 17 00:00:00 2001 From: Victor Denisov Date: Wed, 16 Nov 2016 17:07:58 -0800 Subject: [PATCH] librbd: use snap_remove implementation from internal Signed-off-by: Victor Denisov --- src/librbd/librbd.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/librbd/librbd.cc b/src/librbd/librbd.cc index ae9d63b25ce83..91bfd2b748356 100644 --- a/src/librbd/librbd.cc +++ b/src/librbd/librbd.cc @@ -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; } -- 2.39.5