]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: Include WorkQueue.h since we use it 14152/head
authorBoris Ranto <branto@redhat.com>
Wed, 8 Feb 2017 22:47:57 +0000 (23:47 +0100)
committerNathan Cutler <ncutler@suse.com>
Sun, 26 Mar 2017 16:07:25 +0000 (18:07 +0200)
We use m_work_queue of type ContextWQ in handle_update function but we
do not include common/WorkQueue.h that defines ContextWQ. This results
in dereference of an incomplete type and causes build error in latest
Fedora rawhide (future 26).

Fixes: http://tracker.ceph.com/issues/18862
Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit 480f82847ad1fc7959f1fe5a90761a5a24550993)

src/librbd/Journal.h

index 1563979a5f60334a59a9ca8532d1934dd31b0241..418b18a0a256f366fb08247ed0a3b2d3c17dcbef 100644 (file)
@@ -11,6 +11,7 @@
 #include "common/Cond.h"
 #include "common/Mutex.h"
 #include "common/Cond.h"
+#include "common/WorkQueue.h"
 #include "journal/Future.h"
 #include "journal/JournalMetadataListener.h"
 #include "journal/ReplayEntry.h"
@@ -23,7 +24,6 @@
 #include <string>
 #include <unordered_map>
 
-class ContextWQ;
 class SafeTimer;
 namespace journal {
 class Journaler;