mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-17 01:01:39 +08:00
Use --chunk-size-limit || 1 for checking if a table can be done in one chunk to avoid chunking empty tables. Checksums for empty tables are now written.
This commit is contained in:
18
t/pt-table-checksum/samples/empty-table-bug-987393.sql
Normal file
18
t/pt-table-checksum/samples/empty-table-bug-987393.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
DROP DATABASE IF EXISTS test;
|
||||
CREATE DATABASE test;
|
||||
USE test;
|
||||
|
||||
CREATE TABLE `test_empty` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
|
||||
CREATE TABLE `test_full` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`d` text NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
|
||||
|
||||
INSERT INTO `test_full` (`id`, `d`) VALUES
|
||||
(1, '2');
|
||||
Reference in New Issue
Block a user