]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: remove unnecessary notify from add_snap()
authorJosh Durgin <josh.durgin@inktank.com>
Sun, 10 Jun 2012 00:27:31 +0000 (17:27 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Sun, 10 Jun 2012 07:14:22 +0000 (00:14 -0700)
The only caller, snapshot_add(), already does a notify when add_snap()
succeeds.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/librbd.cc

index d56fd1bee8998a94a978383cd61480c272208369..73fd6cbd639c0bbe35ec8461b211c88149f1ca6a 100644 (file)
@@ -1289,7 +1289,6 @@ int add_snap(ImageCtx *ictx, const char *snap_name)
                     << cpp_strerror(r) << dendl;
     return r;
   }
-  notify_change(ictx->md_ctx, ictx->header_oid, NULL, ictx);
 
   return 0;
 }