[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:
Zardosht Kasheff 2010-12-08 21:14:13 +00:00 committed by Yoni Fogel
parent 4b2f4c2080
commit 57ee91ba59

View file

@ -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;