diff options
author | Mykola Golub <mgolub@suse.com> | 2019-01-08 13:01:06 +0100 |
---|---|---|
committer | Mykola Golub <mgolub@suse.com> | 2019-01-09 22:39:07 +0100 |
commit | 9a3b87bf98de30a5b773514087724dc2dc6c28b9 (patch) | |
tree | 7bb5568b87150648552fb721035f87d9f60dd90e /src/test/journal | |
parent | Merge pull request #25816 from neha-ojha/wip-36686 (diff) | |
download | ceph-9a3b87bf98de30a5b773514087724dc2dc6c28b9.tar.xz ceph-9a3b87bf98de30a5b773514087724dc2dc6c28b9.zip |
test/journal: ReplayEntry::get_data is const
Signed-off-by: Mykola Golub <mgolub@suse.com>
Diffstat (limited to 'src/test/journal')
-rw-r--r-- | src/test/journal/mock/MockJournaler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/journal/mock/MockJournaler.h b/src/test/journal/mock/MockJournaler.h index 0b159a8efb2..b925ddfebe9 100644 --- a/src/test/journal/mock/MockJournaler.h +++ b/src/test/journal/mock/MockJournaler.h @@ -62,7 +62,7 @@ struct MockReplayEntry { } MOCK_CONST_METHOD0(get_commit_tid, uint64_t()); - MOCK_METHOD0(get_data, bufferlist()); + MOCK_CONST_METHOD0(get_data, bufferlist()); }; struct MockReplayEntryProxy { @@ -70,7 +70,7 @@ struct MockReplayEntryProxy { return MockReplayEntry::get_instance().get_commit_tid(); } - bufferlist get_data() { + bufferlist get_data() const { return MockReplayEntry::get_instance().get_data(); } }; |