Commit 57ee91ba authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[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
parent 4b2f4c20
...@@ -5092,6 +5092,9 @@ int ha_tokudb::info(uint flag) { ...@@ -5092,6 +5092,9 @@ int ha_tokudb::info(uint flag) {
if (flag & HA_STATUS_VARIABLE) { if (flag & HA_STATUS_VARIABLE) {
// Just to get optimizations right // Just to get optimizations right
stats.records = share->rows + share->rows_from_locked_table; stats.records = share->rows + share->rows_from_locked_table;
if (stats.records == 0) {
stats.records++;
}
stats.deleted = 0; stats.deleted = 0;
if (!(flag & HA_STATUS_NO_LOCK)) { if (!(flag & HA_STATUS_NO_LOCK)) {
u_int64_t num_rows = 0; u_int64_t num_rows = 0;
...@@ -5105,6 +5108,9 @@ int ha_tokudb::info(uint flag) { ...@@ -5105,6 +5108,9 @@ int ha_tokudb::info(uint flag) {
if (error == 0) { if (error == 0) {
share->rows = num_rows; share->rows = num_rows;
stats.records = num_rows; stats.records = num_rows;
if (stats.records == 0) {
stats.records++;
}
} }
else { else {
goto cleanup; goto cleanup;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment