summaryrefslogtreecommitdiffstats
path: root/src/journal/Future.h
diff options
context:
space:
mode:
authorJason Dillaman <dillaman@redhat.com>2015-07-17 17:26:54 +0200
committerJason Dillaman <dillaman@redhat.com>2015-11-06 02:42:42 +0100
commit352194d90a58a8703b8e816824a67410061d23bd (patch)
tree8630aacf3fb40b80889df10b2172015c3f80bb14 /src/journal/Future.h
parentcls_journal: EntryPositions is now represented as a list (diff)
downloadceph-352194d90a58a8703b8e816824a67410061d23bd.tar.xz
ceph-352194d90a58a8703b8e816824a67410061d23bd.zip
journal: simplified commit position tracking
Now the journal player and recorder will allocate a tid to represent the associated journal entry. The order of these allocations are tracked so that the commit position can be moved only when all prior commits are safely on disk. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Diffstat (limited to 'src/journal/Future.h')
-rw-r--r--src/journal/Future.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/journal/Future.h b/src/journal/Future.h
index 88ad436ef2f..dbc7d4d6877 100644
--- a/src/journal/Future.h
+++ b/src/journal/Future.h
@@ -34,8 +34,13 @@ public:
int get_return_value() const;
private:
+ friend class Journaler;
friend std::ostream& operator<<(std::ostream&, const Future&);
+ inline FutureImplPtr get_future_impl() const {
+ return m_future_impl;
+ }
+
FutureImplPtr m_future_impl;
};