Documentation — Commands reference
Brings the out-of-date segments of a table back in line with the sane ones.
repair [table] TABLE_NAME [using DIRECTORY];
For each out-of-date segment, SynSQL exports the content of a sane segment of the same partition into a file, and imports it into the out-of-date segment. The file goes to /tmp unless you give another directory with using: take a directory with enough space for the biggest segment.
UPDATE privilege.lock table T;): no write must happen during the repair.alter table T set segments up;.The repair works on every chunk of the table.