Project

General

Profile

Bug #15741

Updated by David Zafman almost 8 years ago

After noticing that nothing in the aio path set the last_objver I tried an ASSERT into a unit test. 

 <pre> 
 diff --git a/src/test/librados/misc.cc b/src/test/librados/misc.cc 
 index 7ddf5a8..31df4b3 100644 
 --- a/src/test/librados/misc.cc 
 +++ b/src/test/librados/misc.cc 
 @@ -579,6 +579,7 @@ TEST_F(LibRadosMiscPP, AioOperatePP) { 
    ASSERT_EQ(0, ioctx.aio_operate("foo", my_completion, &o)); 
    ASSERT_EQ(0, my_completion->wait_for_complete_and_cb()); 
    ASSERT_EQ(my_aio_complete, true); 
 +    ASSERT_NE(0, ioctx.get_last_version()); 

    uint64_t size; 
    time_t mtime; 
 </pre> 

 [ RUN        ] LibRadosMiscPP.AioOperatePP 
 test/librados/misc.cc:582: Failure 
 Expected: (0) != (ioctx.get_last_version()), actual: 0 vs 0 
 [    FAILED    ] LibRadosMiscPP.AioOperatePP (20 ms) 

Back