mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
search_pattern_in_file.inc changes
1. Special mode to search in error logs: if SEARCH_RANGE is not set, the file is considered an error log and the search is performed since the last CURRENT_TEST: line 2. Number of matches is printed too. "FOUND 5 /foo/ in bar". Use greedy .* at the end of the pattern if number of matches isn't stable. If nothing is found it's still "NOT FOUND", not "FOUND 0". 3. SEARCH_ABORT specifies the prefix of the output. Can be "NOT FOUND" or "FOUND" as before, but also "FOUND 5 " if needed.
This commit is contained in:
@ -14,16 +14,16 @@ insert into t1 values(3,"compressed table");
|
||||
[2]: check the innochecksum with full form --strict-check=crc32
|
||||
[3]: check the innochecksum with short form -C crc32
|
||||
[4]: check the innochecksum with --no-check ignores algorithm check, warning is expected
|
||||
FOUND /Error: --no-check must be associated with --write option./ in my_restart.err
|
||||
FOUND 1 /Error: --no-check must be associated with --write option./ in my_restart.err
|
||||
[5]: check the innochecksum with short form --no-check ignores algorithm check, warning is expected
|
||||
FOUND /Error: --no-check must be associated with --write option./ in my_restart.err
|
||||
FOUND 1 /Error: --no-check must be associated with --write option./ in my_restart.err
|
||||
[6]: check the innochecksum with full form strict-check & no-check , an error is expected
|
||||
FOUND /Error: --strict-check option cannot be used together with --no-check option./ in my_restart.err
|
||||
FOUND 1 /Error: --strict-check option cannot be used together with --no-check option./ in my_restart.err
|
||||
[7]: check the innochecksum with short form strict-check & no-check , an error is expected
|
||||
FOUND /Error: --strict-check option cannot be used together with --no-check option./ in my_restart.err
|
||||
FOUND 1 /Error: --strict-check option cannot be used together with --no-check option./ in my_restart.err
|
||||
[8]: check the innochecksum with short & full form combination
|
||||
# strict-check & no-check, an error is expected
|
||||
FOUND /Error: --strict-check option cannot be used together with --no-check option./ in my_restart.err
|
||||
FOUND 1 /Error: --strict-check option cannot be used together with --no-check option./ in my_restart.err
|
||||
[9]: check the innochecksum with full form --strict-check=innodb
|
||||
[10]: check the innochecksum with full form --strict-check=none
|
||||
# when server Default checksum=crc32
|
||||
@ -32,16 +32,16 @@ FOUND /Error: --strict-check option cannot be used together with --no-check opti
|
||||
[12]: check the innochecksum with short form -C none
|
||||
# when server Default checksum=crc32
|
||||
[13]: check strict-check with invalid values
|
||||
FOUND /Error while setting value \'strict_innodb\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND /Error while setting value \'strict_innodb\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND /Error while setting value \'strict_crc32\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND /Error while setting value \'strict_crc32\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND /Error while setting value \'strict_none\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND /Error while setting value \'strict_none\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND /Error while setting value \'InnoBD\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND /Error while setting value \'InnoBD\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND /Error while setting value \'crc\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND /Error while setting value \'no\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND 1 /Error while setting value \'strict_innodb\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND 1 /Error while setting value \'strict_innodb\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND 1 /Error while setting value \'strict_crc32\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND 1 /Error while setting value \'strict_crc32\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND 1 /Error while setting value \'strict_none\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND 1 /Error while setting value \'strict_none\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND 1 /Error while setting value \'InnoBD\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND 1 /Error while setting value \'InnoBD\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND 1 /Error while setting value \'crc\' to \'strict-check\'/ in my_restart.err
|
||||
FOUND 1 /Error while setting value \'no\' to \'strict-check\'/ in my_restart.err
|
||||
[14a]: when server default checksum=crc32 rewrite new checksum=crc32 with innochecksum
|
||||
# Also check the long form of write option.
|
||||
[14b]: when server default checksum=crc32 rewrite new checksum=innodb with innochecksum
|
||||
@ -85,7 +85,7 @@ c1 c2
|
||||
1 Innochecksum InnoDB1
|
||||
# Stop server
|
||||
[18]:check Innochecksum with invalid write options
|
||||
FOUND /Error while setting value \'strict_crc32\' to \'write\'/ in my_restart.err
|
||||
FOUND /Error while setting value \'strict_innodb\' to \'write\'/ in my_restart.err
|
||||
FOUND /Error while setting value \'crc23\' to \'write\'/ in my_restart.err
|
||||
FOUND 1 /Error while setting value \'strict_crc32\' to \'write\'/ in my_restart.err
|
||||
FOUND 1 /Error while setting value \'strict_innodb\' to \'write\'/ in my_restart.err
|
||||
FOUND 1 /Error while setting value \'crc23\' to \'write\'/ in my_restart.err
|
||||
DROP TABLE tab1;
|
||||
|
@ -206,10 +206,10 @@ Filename::tab#.ibd
|
||||
# allow-mismatches,page,start-page,end-page
|
||||
[9]: check the both short and long options "page" and "start-page" when
|
||||
# seek value is larger than file size.
|
||||
FOUND /Error: Unable to seek to necessary offset: Invalid argument/ in my_restart.err
|
||||
FOUND /Error: Unable to seek to necessary offset: Invalid argument/ in my_restart.err
|
||||
FOUND /Error: Unable to seek to necessary offset: Invalid argument/ in my_restart.err
|
||||
FOUND /Error: Unable to seek to necessary offset: Invalid argument/ in my_restart.err
|
||||
FOUND 1 /Error: Unable to seek to necessary offset: Invalid argument/ in my_restart.err
|
||||
FOUND 1 /Error: Unable to seek to necessary offset: Invalid argument/ in my_restart.err
|
||||
FOUND 1 /Error: Unable to seek to necessary offset: Invalid argument/ in my_restart.err
|
||||
FOUND 1 /Error: Unable to seek to necessary offset: Invalid argument/ in my_restart.err
|
||||
[34]: check the invalid upper bound values for options, allow-mismatches, end-page, start-page and page.
|
||||
# innochecksum will fail with error code: 1
|
||||
NOT FOUND /Incorrect unsigned integer value: '18446744073709551616'/ in my_restart.err
|
||||
|
Reference in New Issue
Block a user