]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 3c5e04f633542b232c17bcc0de542872f3ecaef3..81b3ded0021f41115dcc78a8f9605d722195c389 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)