std::string m_log_pool_name;
uint64_t m_log_pool_config_size; /* Configured size of RWL */
- uint64_t m_log_pool_actual_size = 0; /* Actual size of RWL pool */
uint32_t m_total_log_entries = 0;
uint32_t m_free_log_entries = 0;
on_finish->complete(-EINVAL);
return;
}
- this->m_log_pool_actual_size = this->m_log_pool_config_size;
this->m_bytes_allocated_cap = effective_pool_size;
/* Log ring empty */
m_first_free_entry = 0;
D_RW(pool_root)->log_entries =
TX_ZALLOC(struct WriteLogCacheEntry,
sizeof(struct WriteLogCacheEntry) * num_small_writes);
- D_RW(pool_root)->pool_size = this->m_log_pool_actual_size;
+ D_RW(pool_root)->pool_size = this->m_log_pool_config_size;
D_RW(pool_root)->flushed_sync_gen = this->m_flushed_sync_gen;
D_RW(pool_root)->block_size = MIN_WRITE_ALLOC_SIZE;
D_RW(pool_root)->num_log_entries = num_small_writes;
on_finish->complete(-EINVAL);
return;
}
- this->m_log_pool_actual_size = D_RO(pool_root)->pool_size;
+ this->m_log_pool_config_size = D_RO(pool_root)->pool_size;
this->m_flushed_sync_gen = D_RO(pool_root)->flushed_sync_gen;
this->m_total_log_entries = D_RO(pool_root)->num_log_entries;
m_first_free_entry = D_RO(pool_root)->first_free_entry;
m_first_valid_entry = next_log_pos;
this->m_total_log_entries = current_pool_root.num_log_entries;
this->m_flushed_sync_gen = current_pool_root.flushed_sync_gen;
- this->m_log_pool_actual_size = current_pool_root.pool_size;
+ this->m_log_pool_config_size = current_pool_root.pool_size;
std::map<uint64_t, std::shared_ptr<SyncPointLogEntry>> sync_point_entries;
}
// along with the write_bytes, add control block size too
next_log_pos += MIN_WRITE_ALLOC_SSD_SIZE;
- if (next_log_pos >= this->m_log_pool_actual_size) {
- next_log_pos = next_log_pos % this->m_log_pool_actual_size + DATA_RING_BUFFER_OFFSET;
+ if (next_log_pos >= this->m_log_pool_config_size) {
+ next_log_pos = next_log_pos % this->m_log_pool_config_size + DATA_RING_BUFFER_OFFSET;
}
}
this->update_sync_points(missing_sync_points, sync_point_entries, later,