[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] info() sets record number. optimizer and show statement can use this value.

Back to archive index

Tetsuro IKEDA null+****@clear*****
Thu Oct 4 10:23:46 JST 2012


Tetsuro IKEDA	2009-03-11 20:46:19 +0900 (Wed, 11 Mar 2009)

  New Revision: 845302bfd3a6ad84a813cad97230599d637159c1
  https://github.com/mroonga/mroonga/commit/845302bfd3a6ad84a813cad97230599d637159c1

  Log:
    info() sets record number. optimizer and show statement can use this value.

  Modified files:
    src/ha_groonga.cc

  Modified: src/ha_groonga.cc (+5 -0)
===================================================================
--- src/ha_groonga.cc    2009-03-11 19:24:32 +0900 (2a32611)
+++ src/ha_groonga.cc    2009-03-11 20:46:19 +0900 (b4d7a59)
@@ -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;
 }
 
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-mysql-commit mailing list
Back to archive index