score.c: Add OSL_UNIQUE to storage flags of score column.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 4 Jan 2015 02:50:02 +0000 (02:50 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 18 Jan 2015 14:45:49 +0000 (15:45 +0100)
The comparator for this column never returns 0 unless the objects
being compared coincide.

score.c

diff --git a/score.c b/score.c
index 3c5e04f..81b3ded 100644 (file)
--- 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)