mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
[t:3110], make change to get partitions in MariaDB 5.2.3 to work right.
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@26399 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
4b2f4c2080
commit
57ee91ba59
1 changed files with 6 additions and 0 deletions
|
@ -5092,6 +5092,9 @@ int ha_tokudb::info(uint flag) {
|
|||
if (flag & HA_STATUS_VARIABLE) {
|
||||
// Just to get optimizations right
|
||||
stats.records = share->rows + share->rows_from_locked_table;
|
||||
if (stats.records == 0) {
|
||||
stats.records++;
|
||||
}
|
||||
stats.deleted = 0;
|
||||
if (!(flag & HA_STATUS_NO_LOCK)) {
|
||||
u_int64_t num_rows = 0;
|
||||
|
@ -5105,6 +5108,9 @@ int ha_tokudb::info(uint flag) {
|
|||
if (error == 0) {
|
||||
share->rows = num_rows;
|
||||
stats.records = num_rows;
|
||||
if (stats.records == 0) {
|
||||
stats.records++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
goto cleanup;
|
||||
|
|
Loading…
Add table
Reference in a new issue