]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crushtool: default to hash 0 (rjenkins1)
authorSage Weil <sage.weil@dreamhost.com>
Fri, 20 May 2011 22:44:15 +0000 (15:44 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 20 May 2011 22:44:15 +0000 (15:44 -0700)
Otherwise we get 255 which is undefined and get bad results!

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/crushtool.cc

index 86199e7833d0427604fd49adc4bb22f259b8f232..73c303bebc409393b962d7f92d2e173a24d3bedb 100644 (file)
@@ -120,7 +120,7 @@ void parse_bucket(iter_t const& i, CrushWrapper &crush)
 
   int id = 0;  // none, yet!
   int alg = -1;
-  int hash = -1;
+  int hash = 0;
   set<int> used_items;
   int size = 0;