From 139691c646809f6c25d72c8de064f26b3c036197 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Thu, 12 May 2016 13:50:58 -0700 Subject: [PATCH] src/test/objectstore/store_test.cc: fix shards for new tests This didn't matter on master/jewel, but in hammer, keyvaluestore asserts that gen != NO_GEN => shard != NO_SHARD. Signed-off-by: Samuel Just --- src/test/objectstore/store_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index 227e2e397c005..d444444335681 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -374,6 +374,7 @@ TEST_P(StoreTest, LongnameSplitTest) { ghobject_t test_obj = generate_long_name(319); ghobject_t test_obj_2 = test_obj; test_obj_2.generation = 0; + test_obj_2.shard_id = shard_id_t(0); { ObjectStore::Transaction t; // should cause a split @@ -741,6 +742,7 @@ public: available_objects.erase(old_obj); ghobject_t new_obj = old_obj; new_obj.generation++; + new_obj.shard_id = shard_id_t(0); available_objects.erase(new_obj); ObjectStore::Transaction *t = new ObjectStore::Transaction; -- 2.39.5