]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/objectstore: set pool for fsck test 24480/head
authorKefu Chai <kchai@redhat.com>
Fri, 21 Sep 2018 11:56:08 +0000 (19:56 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 16 Oct 2018 03:10:19 +0000 (11:10 +0800)
commitdb6522309eec30cb4c7a83dbce3452c9b54a9262
tree797cfee42392b37c10a0ec79d5d8be0fe7bd2c6d
parente419fa65b801a71e85d060cc5d2f5d41b319a7ae
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>
(cherry picked from commit 8a814b2eb6f6d16233304e07b2adc5951f5fb312)
src/test/objectstore/store_test.cc