Navigation Menu

Skip to content

Commit

Permalink
info() sets record number. optimizer and show statement can use this …
Browse files Browse the repository at this point in the history
…value.
  • Loading branch information
ikdttr committed Mar 11, 2009
1 parent 5f75630 commit 845302b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ha_groonga.cc
Expand Up @@ -276,6 +276,11 @@ int ha_groonga::info(uint flag)
{
mrn_ctx_init();
MRN_TRACE;

if (flag & HA_STATUS_VARIABLE) {
stats.records = (ha_rows) grn_table_size(mrn_ctx_tls, share->obj);
}

return 0;
}

Expand Down

0 comments on commit 845302b

Please sign in to comment.