Skip to content

Commit

Permalink
Merge pull request #10926 from ifed01/wip-bluestore-fix-statfs-test
Browse files Browse the repository at this point in the history
os/bluestore: yet another statfs test fix

Reviewed-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Aug 30, 2016
2 parents 5eb32c9 + 7ff3440 commit 596a7dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/objectstore/store_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,8 @@ TEST_P(StoreTest, BluestoreStatFSTest) {
g_conf->set_val("bluestore_compression", "force");
g_conf->set_val("bluestore_min_alloc_size", "65536");
g_ceph_context->_conf->apply_changes(NULL);
store->umount();
store->mount(); //to force min_alloc_size update

ObjectStore::Sequencer osr("test");
int r;
Expand Down Expand Up @@ -1338,6 +1340,7 @@ TEST_P(StoreTest, BluestoreStatFSTest) {
ASSERT_EQ( 0u, statfs.compressed_allocated);
}
g_conf->set_val("bluestore_compression", "none");
g_conf->set_val("bluestore_min_alloc_size", "0");
g_ceph_context->_conf->apply_changes(NULL);
}

Expand Down

0 comments on commit 596a7dc

Please sign in to comment.