[Groonga-commit] groonga/groonga at 95c884c [master] All columns aren't needed to be unlinked

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Tue May 10 17:44:35 JST 2016


Kouhei Sutou	2016-05-10 17:44:35 +0900 (Tue, 10 May 2016)

  New Revision: 95c884cd3b42d44b130d8b949fdbf931466d8748
  https://github.com/groonga/groonga/commit/95c884cd3b42d44b130d8b949fdbf931466d8748

  Message:
    All columns aren't needed to be unlinked

  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -2)
===================================================================
--- lib/db.c    2016-05-10 17:40:05 +0900 (a45d298)
+++ lib/db.c    2016-05-10 17:44:35 +0900 (f213a3d)
@@ -12818,8 +12818,7 @@ grn_table_sort_key_close(grn_ctx *ctx, grn_table_sort_key *keys, unsigned int nk
   if (keys) {
     for (i = 0; i < nkeys; i++) {
       grn_obj *key = keys[i].key;
-      grn_id id = grn_obj_id(ctx, key);
-      if (!(id & GRN_OBJ_TMP_COLUMN)) {
+      if (!grn_obj_is_column(ctx, key)) {
         grn_obj_unlink(ctx, key);
       }
     }
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る