[Groonga-commit] groonga/groonga [master] Use GRN_CURSOR_PREFIX in buffer_new() instead of GRN_CURSOR_ASCENDING.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 11月 18日 (木) 15:02:15 JST


Daijiro MORI	2010-11-18 06:02:15 +0000 (Thu, 18 Nov 2010)

  New Revision: c24b92e125d79a7861253cd3d23a384cce5481cb

  Log:
    Use GRN_CURSOR_PREFIX in buffer_new() instead of GRN_CURSOR_ASCENDING.

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+2 -2)
===================================================================
--- lib/ii.c    2010-11-18 05:47:13 +0000 (67c22fb)
+++ lib/ii.c    2010-11-18 06:02:15 +0000 (02f675a)
@@ -3301,8 +3301,8 @@ buffer_new(grn_ctx *ctx, grn_ii *ii, int size, uint32_t *pos,
   int key_size = grn_table_get_key(ctx, ii->lexicon, id, key, GRN_TABLE_MAX_KEY_SIZE);
   uint32_t *a, lseg = NOT_ASSIGNED, pseg = NOT_ASSIGNED;
   grn_table_cursor *tc = (ii->lexicon->header.type == GRN_TABLE_PAT_KEY)
-    ? grn_table_cursor_open(ctx, ii->lexicon, key, key_size, NULL, 0, 0, -1,
-                            GRN_CURSOR_ASCENDING|GRN_CURSOR_GT)
+    ? grn_table_cursor_open(ctx, ii->lexicon, NULL, 0, key, key_size, 0, -1,
+                            GRN_CURSOR_PREFIX)
     : grn_table_cursor_open(ctx, ii->lexicon, NULL, 0, NULL, 0, 0, -1,
                             GRN_CURSOR_ASCENDING);
   if (tc) {




Groonga-commit メーリングリストの案内
Back to archive index