[Groonga-commit] groonga/groonga at 98b8501 [master] Append a sub-record at the end when the score is the same.

Back to archive index

Daijiro MORI null+****@clear*****
Fri Jun 21 14:23:21 JST 2013


Daijiro MORI	2013-06-21 14:23:21 +0900 (Fri, 21 Jun 2013)

  New Revision: 98b85017435992d40f4693e9e25e1f2b6e5ff573
  https://github.com/groonga/groonga/commit/98b85017435992d40f4693e9e25e1f2b6e5ff573

  Message:
    Append a sub-record at the end when the score is the same.

  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -1)
===================================================================
--- lib/db.c    2013-06-21 14:01:10 +0900 (0113495)
+++ lib/db.c    2013-06-21 14:23:21 +0900 (6a4f54d)
@@ -1867,7 +1867,7 @@ subrecs_push(byte *subrecs, int size, int n_subrecs, int score, void *body, int
   while (n) {
     n2 = (n - 1) >> 1;
     c2 = GRN_RSET_SUBRECS_NTH(subrecs,size,n2);
-    if (GRN_RSET_SUBRECS_CMP(score, *c2, dir) > 0) { break; }
+    if (GRN_RSET_SUBRECS_CMP(score, *c2, dir) >= 0) { break; }
     GRN_RSET_SUBRECS_COPY(subrecs,size,n,c2);
     n = n2;
   }
-------------- next part --------------
HTML����������������������������...
Download 



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