[Groonga-commit] groonga/groonga at 709c38d [master] Add missing nfetches and nhits initialization

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Oct 15 18:45:43 JST 2013


Kouhei Sutou	2013-10-15 18:45:43 +0900 (Tue, 15 Oct 2013)

  New Revision: 709c38df9cfe3c17fc4b81b16913af30351c4b3a
  https://github.com/groonga/groonga/commit/709c38df9cfe3c17fc4b81b16913af30351c4b3a

  Message:
    Add missing nfetches and nhits initialization
    
    It causes storange cache hit rate in status command.

  Modified files:
    lib/ctx.c

  Modified: lib/ctx.c (+2 -0)
===================================================================
--- lib/ctx.c    2013-10-15 14:58:28 +0900 (a171162)
+++ lib/ctx.c    2013-10-15 18:45:43 +0900 (575f834)
@@ -2013,6 +2013,8 @@ grn_cache_open(grn_ctx *ctx)
                                 sizeof(grn_cache_entry), GRN_OBJ_KEY_VAR_SIZE);
   MUTEX_INIT(cache->mutex);
   cache->max_nentries = GRN_CACHE_DEFAULT_MAX_N_ENTRIES;
+  cache->nfetches = 0;
+  cache->nhits = 0;
 
 exit :
   GRN_API_RETURN(cache);
-------------- next part --------------
HTML����������������������������...
Download 



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