]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
journal: add default constructor to Future
authorJason Dillaman <dillaman@redhat.com>
Mon, 13 Jul 2015 16:58:21 +0000 (12:58 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 6 Nov 2015 01:42:41 +0000 (20:42 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/journal/Future.h

index 3ded9f6d9011a4385e9414003977e18f05c88021..88ad436ef2fba80217f2d2fe8138ed39b2b333ec 100644 (file)
@@ -20,8 +20,13 @@ class Future {
 public:
   typedef boost::intrusive_ptr<FutureImpl> FutureImplPtr;
 
+  Future() {}
   Future(const FutureImplPtr &future_impl) : m_future_impl(future_impl) {}
 
+  inline bool is_valid() const {
+    return m_future_impl;
+  }
+
   void flush(Context *on_safe);
   void wait(Context *on_safe);