From: Andre Noll <maan@tuebingen.mpg.de>
Date: Sun, 4 Jan 2015 02:50:02 +0000 (+0000)
Subject: score.c: Add OSL_UNIQUE to storage flags of score column.
X-Git-Tag: v0.5.4~8
X-Git-Url: https://git.tue.mpg.de/?a=commitdiff_plain;h=00b149c25084c7e98b995c155344051df5f7da1e;p=paraslash.git

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.
---

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)