There's no m_perfcounter in SyncPoint. Its scope is in
ReplicatedWriteLog.
Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
* nullptr, but m_current_sync_gen may not be zero. */
if (old_sync_point) {
new_sync_point->setup_earlier_sync_point(old_sync_point, m_last_op_sequence_num);
+ m_perfcounter->hinc(l_librbd_rwl_syncpoint_hist,
+ old_sync_point->log_entry->writes,
+ old_sync_point->log_entry->bytes);
/* This sync point will acquire no more sub-ops. Activation needs
* to acquire m_lock, so defer to later*/
later.add(new LambdaContext(
void SyncPoint::setup_earlier_sync_point(std::shared_ptr<SyncPoint> sync_point,
uint64_t last_op_sequence_num) {
- m_perfcounter->inc(l_librbd_rwl_syncpoint_hist,
- sync_point->log_entry->writes, sync_point->log_entry->bytes);
earlier_sync_point = sync_point;
log_entry->prior_sync_point_flushed = false;
earlier_sync_point->log_entry->next_sync_point_entry = log_entry;