]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/objectstore: set pool for fsck test 24220/head
authorKefu Chai <kchai@redhat.com>
Fri, 21 Sep 2018 11:56:08 +0000 (19:56 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 21 Sep 2018 11:59:39 +0000 (19:59 +0800)
commit8a814b2eb6f6d16233304e07b2adc5951f5fb312
tree1e6435151f3891af02aa2b568876e756f70301d2
parent46d55fcbaff00d1a4b2a56bb766b2342735e446a
test/objectstore: set pool for fsck test

since 0bd2546eaca72ed0122a9c2648df4bef05b0d5d2, we check the pool id
of object when performing fsck to ensure we are looking at the right
collection, but the test is still using the pool id set by the
constructor of hobject_t. so all objects we created in that test belong
to the POOL_META. while the collection is created with the pool id of
`555`. hence the test fails.

Fixes: http://tracker.ceph.com/issues/36099
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/objectstore/store_test.cc