[Groonga-commit] groonga/groonga at 51f3927 [master] Export API to change GRN_II_CURSOR_SET_MIN_ENABLE at runtime

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jan 31 17:53:04 JST 2017


Kouhei Sutou	2017-01-31 17:53:04 +0900 (Tue, 31 Jan 2017)

  New Revision: 51f3927e37b527817d4b5afdfe60116468ccc844
  https://github.com/groonga/groonga/commit/51f3927e37b527817d4b5afdfe60116468ccc844

  Message:
    Export API to change GRN_II_CURSOR_SET_MIN_ENABLE at runtime
    
    They'll be removed when GRN_II_CURSOR_SET_MIN is stable.

  Modified files:
    include/groonga/ii.h
    lib/ii.c

  Modified: include/groonga/ii.h (+3 -0)
===================================================================
--- include/groonga/ii.h    2017-01-31 13:47:09 +0900 (f97ccb2)
+++ include/groonga/ii.h    2017-01-31 17:53:04 +0900 (9f59e90)
@@ -27,6 +27,9 @@ extern "C" {
 typedef struct _grn_ii grn_ii;
 typedef struct _grn_ii_buffer grn_ii_buffer;
 
+GRN_API void grn_ii_cursor_set_min_enable_set(grn_bool enable);
+GRN_API grn_bool grn_ii_cursor_set_min_enable_get(void);
+
 GRN_API uint32_t grn_ii_estimate_size(grn_ctx *ctx, grn_ii *ii, grn_id tid);
 GRN_API uint32_t grn_ii_estimate_size_for_query(grn_ctx *ctx, grn_ii *ii,
                                                 const char *query,

  Modified: lib/ii.c (+12 -0)
===================================================================
--- lib/ii.c    2017-01-31 13:47:09 +0900 (4bba262)
+++ lib/ii.c    2017-01-31 17:53:04 +0900 (9749755)
@@ -202,6 +202,18 @@ grn_ii_init_from_env(void)
   }
 }
 
+void
+grn_ii_cursor_set_min_enable_set(grn_bool enable)
+{
+  grn_ii_cursor_set_min_enable = enable;
+}
+
+grn_bool
+grn_ii_cursor_set_min_enable_get(void)
+{
+  return grn_ii_cursor_set_min_enable;
+}
+
 /* segment */
 
 inline static uint32_t
-------------- next part --------------
HTML����������������������������...
下载 



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