Navigation Menu

Skip to content

Commit

Permalink
Append a sub-record at the end when the score is the same.
Browse files Browse the repository at this point in the history
  • Loading branch information
daijiro committed Jun 21, 2013
1 parent 46ad383 commit 98b8501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 98b8501

Please sign in to comment.