[Groonga-commit] groonga/groonga at 2ea5c20 [master] Provide grn_table_max_n_subrecs().

Back to archive index

Daijiro MORI null+****@clear*****
Tue Jun 18 18:18:25 JST 2013


Daijiro MORI	2013-06-18 18:18:25 +0900 (Tue, 18 Jun 2013)

  New Revision: 2ea5c206545f6d552af03b0c38eb4b1984c8e62f
  https://github.com/groonga/groonga/commit/2ea5c206545f6d552af03b0c38eb4b1984c8e62f

  Message:
    Provide grn_table_max_n_subrecs().

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

  Modified: include/groonga.h (+2 -0)
===================================================================
--- include/groonga.h    2013-06-18 18:08:58 +0900 (688101a)
+++ include/groonga.h    2013-06-18 18:18:25 +0900 (939ffed)
@@ -2728,6 +2728,8 @@ GRN_API grn_rc grn_table_sort_key_close(grn_ctx *ctx,
 
 GRN_API grn_bool grn_table_is_grouped(grn_ctx *ctx, grn_obj *table);
 
+GRN_API unsigned int grn_table_max_n_subrecs(grn_ctx *ctx, grn_obj *table);
+
 GRN_API grn_obj *grn_table_create_for_group(grn_ctx *ctx,
                                             const char *name,
                                             unsigned int name_size,

  Modified: lib/db.c (+9 -0)
===================================================================
--- lib/db.c    2013-06-18 18:08:58 +0900 (76f097c)
+++ lib/db.c    2013-06-18 18:18:25 +0900 (391d737)
@@ -8879,6 +8879,15 @@ grn_table_is_grouped(grn_ctx *ctx, grn_obj *table)
   return GRN_FALSE;
 }
 
+unsigned int
+grn_table_max_n_subrecs(grn_ctx *ctx, grn_obj *table)
+{
+  if (GRN_OBJ_TABLEP(table)) {
+    return DB_OBJ(table)->max_n_subrecs;
+  }
+  return 0;
+}
+
 /* grn_load */
 
 static grn_obj *
-------------- next part --------------
HTML����������������������������...
Download 



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