fix wrong typo at StorageMemory

This commit is contained in:
张中南 2021-05-17 18:24:01 +08:00
parent 6936274398
commit 3d1992ea50
3 changed files with 8 additions and 2 deletions

View File

@ -311,8 +311,8 @@ void StorageMemory::mutate(const MutationCommands & commands, ContextPtr context
rows += buffer.rows();
bytes += buffer.bytes();
}
total_size_bytes.store(rows, std::memory_order_relaxed);
total_size_rows.store(bytes, std::memory_order_relaxed);
total_size_bytes.store(bytes, std::memory_order_relaxed);
total_size_rows.store(rows, std::memory_order_relaxed);
data.set(std::move(new_data));
}

View File

@ -8,7 +8,9 @@
3 3
4 4
5 5
5
2 2
3 3
4 4
5 5
4

View File

@ -13,8 +13,12 @@ ALTER TABLE defaults UPDATE n = 100 WHERE s = '1';
SELECT * FROM defaults;
SELECT count(*) FROM defaults;
ALTER TABLE defaults DELETE WHERE n = 100;
SELECT * FROM defaults;
SELECT count(*) FROM defaults;
DROP TABLE defaults;