[Groonga-commit] groonga/groonga at eb409c6 [master] Remove needless grn_obj_get_value() call for getting _score

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Nov 8 23:45:50 JST 2014


Kouhei Sutou	2014-11-08 23:45:50 +0900 (Sat, 08 Nov 2014)

  New Revision: eb409c6e6acc9d4962df443a90c4950e6403afa4
  https://github.com/groonga/groonga/commit/eb409c6e6acc9d4962df443a90c4950e6403afa4

  Message:
    Remove needless grn_obj_get_value() call for getting _score

  Modified files:
    lib/db.c

  Modified: lib/db.c (+0 -1)
===================================================================
--- lib/db.c    2014-11-08 23:21:05 +0900 (56069a2)
+++ lib/db.c    2014-11-08 23:45:50 +0900 (056b8dc)
@@ -5129,7 +5129,6 @@ grn_accessor_get_value(grn_ctx *ctx, grn_accessor *a, grn_id id, grn_obj *value)
       vs = GRN_BULK_VSIZE(value) - size0;
       break;
     case GRN_ACCESSOR_GET_SCORE :
-      grn_obj_get_value(ctx, a->obj, id, value);
       {
         grn_rset_recinfo *ri = (grn_rset_recinfo *)grn_obj_get_value_(ctx, a->obj, id, &vs);
         GRN_INT32_PUT(ctx, value, ri->score);
-------------- next part --------------
HTML����������������������������...
Download 



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