From 82d6aeb333200d059139db95c19a0e3e57c7fdad Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 19 Mar 2008 19:48:52 -0700 Subject: [PATCH] crush: bugfix in builder --- src/crush/builder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crush/builder.c b/src/crush/builder.c index d02c4ee487f2f..4deac66e760d3 100644 --- a/src/crush/builder.c +++ b/src/crush/builder.c @@ -120,7 +120,7 @@ int crush_add_bucket(struct crush_map *map, id = crush_get_next_bucket_id(map); pos = -1 - id; - while (pos > map->max_buckets) { + while (pos >= map->max_buckets) { /* expand array */ oldsize = map->max_buckets; if (map->max_buckets) -- 2.39.5