mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Sync replicas between operations
This commit is contained in:
parent
6060a1ab57
commit
0d28fdd116
@ -12,6 +12,7 @@ INSERT INTO attach_01451_r1 VALUES (2);
|
||||
|
||||
SELECT v FROM attach_01451_r1 ORDER BY v;
|
||||
|
||||
SYSTEM SYNC REPLICA attach_01451_r2;
|
||||
ALTER TABLE attach_01451_r2 DETACH PART 'all_1_1_0';
|
||||
|
||||
SELECT v FROM attach_01451_r1 ORDER BY v;
|
||||
@ -20,6 +21,7 @@ SELECT name FROM system.detached_parts WHERE table = 'attach_01451_r2';
|
||||
|
||||
ALTER TABLE attach_01451_r2 ATTACH PART 'all_1_1_0';
|
||||
|
||||
SYSTEM SYNC REPLICA attach_01451_r1;
|
||||
SELECT v FROM attach_01451_r1 ORDER BY v;
|
||||
|
||||
SELECT name FROM system.detached_parts WHERE table = 'attach_01451_r2';
|
||||
|
Loading…
Reference in New Issue
Block a user