Fix warning

This commit is contained in:
2024-08-01 15:23:43 -07:00
parent 8e480528d5
commit b8edd92698

View File

@@ -720,16 +720,18 @@ struct ReadContext {
struct WriteContext { struct WriteContext {
struct Accum { struct Accum {
int64_t entries_erased = 0; int64_t entries_erased;
int64_t insert_iterations = 0; int64_t insert_iterations;
int64_t entries_inserted = 0; int64_t entries_inserted;
int64_t nodes_allocated = 0; int64_t nodes_allocated;
int64_t nodes_released = 0; int64_t nodes_released;
int64_t point_writes = 0; int64_t point_writes;
int64_t range_writes = 0; int64_t range_writes;
int64_t write_bytes = 0; int64_t write_bytes;
} accum; } accum;
WriteContext() { memset(&accum, 0, sizeof(accum)); }
template <class T> T *allocate(int c) { template <class T> T *allocate(int c) {
++accum.nodes_allocated; ++accum.nodes_allocated;
if constexpr (std::is_same_v<T, Node0>) { if constexpr (std::is_same_v<T, Node0>) {