m_first_valid_entry = first_valid_entry;
ceph_assert(m_first_valid_entry % MIN_WRITE_ALLOC_SSD_SIZE == 0);
this->m_free_log_entries += retiring_entries.size();
+ ceph_assert(this->m_bytes_allocated >= allocated_bytes);
+ this->m_bytes_allocated -= allocated_bytes;
ceph_assert(this->m_bytes_cached >= cached_bytes);
this->m_bytes_cached -= cached_bytes;
<< m_first_valid_entry << "," << "release space = "
<< allocated_bytes << "," << "m_bytes_allocated="
<< m_bytes_allocated << "," << "release cached space="
- << allocated_bytes << "," << "m_bytes_cached="
+ << cached_bytes << "," << "m_bytes_cached="
<< this->m_bytes_cached << dendl;
this->m_alloc_failed_since_retire = false;