]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/tests: should read size_t options using get_val<Option::size_t>() 24736/head
authorKefu Chai <kchai@redhat.com>
Wed, 24 Oct 2018 14:16:30 +0000 (22:16 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 24 Oct 2018 14:18:34 +0000 (22:18 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/objectstore/store_test.cc

index 98706a1d23e40e211d7b058948a7aa9cd745d279..8366469b5cb4ccc1e9dda833fabf16862ef598d9 100644 (file)
@@ -7325,7 +7325,7 @@ TEST_P(StoreTest, allocateBlueFSTest) {
   struct store_statfs_t statfs;
   store->statfs(&statfs);
 
-  uint64_t to_alloc = g_conf().get_val<uint64_t>("bluefs_alloc_size");
+  uint64_t to_alloc = g_conf().get_val<Option::size_t>("bluefs_alloc_size");
 
   int r = bstore->allocate_bluefs_freespace(to_alloc);
   ASSERT_EQ(r, 0);