mirror of
https://github.com/ceph/ceph
synced 2024-12-22 03:22:00 +00:00
objectstore/store_test: fix lack of flush prior to collection_empty() call
Fixes: http://tracker.ceph.com/issues/22409 Signed-off-by: Igor Fedotov <ifedotov@suse.com>
This commit is contained in:
parent
37282f2158
commit
f669fcdfd5
@ -2388,6 +2388,7 @@ TEST_P(StoreTest, SimpleAttrTest) {
|
||||
r = apply_transaction(store, &osr, std::move(t));
|
||||
ASSERT_EQ(r, 0);
|
||||
}
|
||||
osr.flush();
|
||||
{
|
||||
bool empty;
|
||||
int r = store->collection_empty(cid, &empty);
|
||||
@ -2407,6 +2408,7 @@ TEST_P(StoreTest, SimpleAttrTest) {
|
||||
r = apply_transaction(store, &osr, std::move(t));
|
||||
ASSERT_EQ(r, 0);
|
||||
}
|
||||
osr.flush();
|
||||
{
|
||||
bool empty;
|
||||
int r = store->collection_empty(cid, &empty);
|
||||
|
Loading…
Reference in New Issue
Block a user