Commit c3c2ffe2 by Julien Muchembled

mysql: do not use unsafe TRUNCATE statement

TRUNCATE was chosen for performance reasons, but it's usually done on small
tables, and not for performance-critical operations. TRUNCATE commits
implicitely, so for pt/ttrans in particular, it's certainly slower due to extra
fsyncs to disk.

On the other side, committing too early can corrupt the database if the storage
node is stopped just after. For example, a failure in changePartitionTable()
can cause 'pt' to remain empty.
1 parent e25fa5d9
Pipeline #1318 for c3c2ffe2 skipped in 0 seconds