]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Dispatcher.h: include assert.h 6990/head
authorMatt Benjamin <mbenjamin@redhat.com>
Sun, 20 Dec 2015 18:32:13 +0000 (13:32 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Sun, 20 Dec 2015 18:32:13 +0000 (13:32 -0500)
The inline ms_fast_dispatch implementation calls assert, which
puts asset.h in the interface.

The fact that many Dispatcher descendants don't implement
ms_fast_dispatch prevents making the method pure virtual--which
suggests that maybe there is a need for a FastDispatcher
interface that inherits Dispatcher and introduces ms_fast_dispatch
and related?

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/msg/Dispatcher.h

index 4c134e577a75159744d03dd856a3946f37903996..d6868edc18d9b8636bde988683e68737cc3765b4 100644 (file)
@@ -17,6 +17,7 @@
 #define CEPH_DISPATCHER_H
 
 #include "include/buffer_fwd.h"
+#include "include/assert.h"
 
 class Messenger;
 class Message;