From 00b149c25084c7e98b995c155344051df5f7da1e Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 4 Jan 2015 02:50:02 +0000 Subject: [PATCH] score.c: Add OSL_UNIQUE to storage flags of score column. The comparator for this column never returns 0 unless the objects being compared coincide. --- score.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/score.c b/score.c index 3c5e04f6..81b3ded0 100644 --- a/score.c +++ b/score.c @@ -71,7 +71,7 @@ static struct osl_column_description score_cols[] = { }, [SCORECOL_SCORE] = { .storage_type = OSL_NO_STORAGE, - .storage_flags = OSL_RBTREE | OSL_FIXED_SIZE, + .storage_flags = OSL_RBTREE | OSL_FIXED_SIZE | OSL_UNIQUE, .name = "score", .compare_function = score_compare, .data_size = sizeof(long) -- 2.39.5