mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
fix wrong typo at StorageMemory
This commit is contained in:
parent
6936274398
commit
3d1992ea50
@ -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));
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,9 @@
|
||||
3 3
|
||||
4 4
|
||||
5 5
|
||||
5
|
||||
2 2
|
||||
3 3
|
||||
4 4
|
||||
5 5
|
||||
4
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user