]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/librbd/mirror/snapshot/ImageMeta.cc
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / librbd / mirror / snapshot / ImageMeta.cc
index 12607de26839100cf80986fdc4d9486421aa6ec7..8268997750c656901397ed2da9790657b32d25e0 100644 (file)
@@ -142,7 +142,8 @@ void ImageMeta<I>::notify_update(Context* on_finish) {
   // open a non-primary image read/write and therefore cannot re-use
   // the ImageWatcher to send the notification
   bufferlist bl;
-  encode(watch_notify::NotifyMessage(watch_notify::HeaderUpdatePayload()), bl);
+  encode(watch_notify::NotifyMessage(new watch_notify::HeaderUpdatePayload()),
+         bl);
 
   m_out_bl.clear();
   auto ctx = new LambdaContext([this, on_finish](int r) {