Allocate write array with arena
This commit is contained in:
@@ -788,9 +788,9 @@ ConflictSet &ConflictSet::operator=(ConflictSet &&other) noexcept {
|
||||
int main(void) {
|
||||
int64_t writeVersion = 0;
|
||||
ConflictSet::Impl cs{writeVersion};
|
||||
constexpr int kNumKeys = 5;
|
||||
ConflictSet::WriteRange write[kNumKeys];
|
||||
Arena arena;
|
||||
constexpr int kNumKeys = 100;
|
||||
auto *write = new (arena) ConflictSet::WriteRange[kNumKeys];
|
||||
for (int i = 0; i < kNumKeys; ++i) {
|
||||
write[i].begin = toKey(arena, i);
|
||||
write[i].end.len = 0;
|
||||
|
Reference in New Issue
Block a user