From: Victor Denisov Date: Thu, 17 Nov 2016 01:07:58 +0000 (-0800) Subject: librbd: use snap_remove implementation from internal X-Git-Tag: v11.1.0~227^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bf9541a1f03ddce57fc53a3e077605bba9c8e6b9;p=ceph.git librbd: use snap_remove implementation from internal Signed-off-by: Victor Denisov --- diff --git a/src/librbd/librbd.cc b/src/librbd/librbd.cc index ae9d63b25ce8..91bfd2b74835 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; }