#include <set>
#include <boost/intrusive_ptr.hpp>
#include <boost/noncopyable.hpp>
-#include "include/assert.h"
+#include "include/ceph_assert.h"
class SafeTimer;
uint64_t object_number, std::shared_ptr<Mutex> lock,
ContextWQ *work_queue, SafeTimer &timer, Mutex &timer_lock,
Handler *handler, uint8_t order, uint32_t flush_interval,
- uint64_t flush_bytes, double flush_age);
+ uint64_t flush_bytes, double flush_age,
+ uint64_t max_in_flight_appends);
~ObjectRecorder() override;
inline uint64_t get_object_number() const {
void claim_append_buffers(AppendBuffers *append_buffers);
bool is_closed() const {
- assert(m_lock->is_locked());
+ ceph_assert(m_lock->is_locked());
return (m_object_closed && m_in_flight_appends.empty());
}
bool close();
uint32_t m_flush_interval;
uint64_t m_flush_bytes;
double m_flush_age;
+ uint32_t m_max_in_flight_appends;
FlushHandler m_flush_handler;