]> git.proxmox.com Git - ceph.git/blob - ceph/src/journal/ReplayEntry.h
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / journal / ReplayEntry.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3
4 #ifndef CEPH_JOURNAL_REPLAY_ENTRY_H
5 #define CEPH_JOURNAL_REPLAY_ENTRY_H
6
7 #include "include/int_types.h"
8 #include "include/buffer.h"
9
10 namespace journal {
11
12 class ReplayEntry {
13 public:
14 ReplayEntry() : m_commit_tid(0) {
15 }
16 ReplayEntry(const bufferlist &data, uint64_t commit_tid)
17 : m_data(data), m_commit_tid(commit_tid) {
18 }
19
20 inline const bufferlist &get_data() const {
21 return m_data;
22 }
23 inline uint64_t get_commit_tid() const {
24 return m_commit_tid;
25 }
26
27 private:
28 bufferlist m_data;
29 uint64_t m_commit_tid;
30 };
31
32 } // namespace journal
33
34 #endif // CEPH_JOURNAL_REPLAY_ENTRY_H