]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
journal: send update notification when tag allocated
authorJason Dillaman <dillaman@redhat.com>
Mon, 19 Sep 2016 15:24:17 +0000 (11:24 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 11 Oct 2016 16:51:18 +0000 (12:51 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit f1cd613e3d8ccb6d05b9adfe1956927991a4f4fe)

src/journal/JournalMetadata.cc

index 36dffdfb4d8bcd08909325239151e1033af31db5..8688a50fa4386437cdcc837fdb57599c64c725ef 100644 (file)
@@ -561,6 +561,7 @@ void JournalMetadata::unregister_client(Context *on_finish) {
 
 void JournalMetadata::allocate_tag(uint64_t tag_class, const bufferlist &data,
                                    Tag *tag, Context *on_finish) {
+  on_finish = new C_NotifyUpdate(this, on_finish);
   C_AllocateTag *ctx = new C_AllocateTag(m_cct, m_ioctx, m_oid,
                                          m_async_op_tracker, tag_class,
                                          data, tag, on_finish);