diff options
Diffstat (limited to 'src/cls/journal/cls_journal_client.cc')
-rw-r--r-- | src/cls/journal/cls_journal_client.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cls/journal/cls_journal_client.cc b/src/cls/journal/cls_journal_client.cc index c22a32cf3a3..d2bb8f9a496 100644 --- a/src/cls/journal/cls_journal_client.cc +++ b/src/cls/journal/cls_journal_client.cc @@ -493,6 +493,15 @@ void guard_append(librados::ObjectWriteOperation *op, uint64_t soft_max_size) { op->exec("journal", "guard_append", bl); } +void append(librados::ObjectWriteOperation *op, uint64_t soft_max_size, + bufferlist &data) { + bufferlist bl; + encode(soft_max_size, bl); + encode(data, bl); + + op->exec("journal", "append", bl); +} + } // namespace client } // namespace journal } // namespace cls |