@@ -855,7 +855,8 @@ static enum test_result test_expiry_with_xattr(ENGINE_HANDLE* h,
855855 get_meta (h, h1, " test_expiry" , false , GetMetaVersion::V1, cookie),
856856 " Get meta command failed" );
857857
858- checkeq (last_meta.revSeqno , prev_revseqno + 1 ,
858+ checkeq (uint64_t (last_meta.revSeqno ),
859+ prev_revseqno + 1 ,
859860 " rev seqno must have incremented by 1" );
860861
861862 /* Retrieve the item info and create a new blob out of the data */
@@ -4165,7 +4166,7 @@ static enum test_result test_revid(ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
41654166
41664167 checkeq (PROTOCOL_BINARY_RESPONSE_SUCCESS, last_status.load (),
41674168 " Expected success" );
4168- checkeq (ii, last_meta.revSeqno , " Unexpected sequence number" );
4169+ checkeq (ii, uint64_t ( last_meta.revSeqno ) , " Unexpected sequence number" );
41694170 }
41704171
41714172 return SUCCESS;
@@ -4993,7 +4994,7 @@ static enum test_result test_set_ret_meta(ENGINE_HANDLE *h,
49934994 check (last_meta.flags == 0 , " Invalid result for flags" );
49944995 check (last_meta.exptime == 0 , " Invalid result for expiration" );
49954996 check (last_meta.cas != 0 , " Invalid result for cas" );
4996- check (last_meta.revSeqno == 1 , " Invalid result for seqno" );
4997+ check (last_meta.revSeqno == 1ull , " Invalid result for seqno" );
49974998
49984999 // Check that set with correct cas succeeds
49995000 set_ret_meta (h, h1, " key" , 3 , " value" , 5 , 0 , last_meta.cas , 10 , 1735689600 );
@@ -5005,7 +5006,7 @@ static enum test_result test_set_ret_meta(ENGINE_HANDLE *h,
50055006 check (last_meta.flags == 10 , " Invalid result for flags" );
50065007 check (last_meta.exptime == 1735689600 , " Invalid result for expiration" );
50075008 check (last_meta.cas != 0 , " Invalid result for cas" );
5008- check (last_meta.revSeqno == 2 , " Invalid result for seqno" );
5009+ check (last_meta.revSeqno == 2ull , " Invalid result for seqno" );
50095010
50105011 // Check that updating an item with no cas succeeds
50115012 set_ret_meta (h, h1, " key" , 3 , " value" , 5 , 0 , 0 , 5 , 0 );
@@ -5017,7 +5018,7 @@ static enum test_result test_set_ret_meta(ENGINE_HANDLE *h,
50175018 check (last_meta.flags == 5 , " Invalid result for flags" );
50185019 check (last_meta.exptime == 0 , " Invalid result for expiration" );
50195020 check (last_meta.cas != 0 , " Invalid result for cas" );
5020- check (last_meta.revSeqno == 3 , " Invalid result for seqno" );
5021+ check (last_meta.revSeqno == 3ull , " Invalid result for seqno" );
50215022
50225023 // Check that updating an item with the wrong cas fails
50235024 set_ret_meta (h, h1, " key" , 3 , " value" , 5 , 0 , last_meta.cas + 1 , 5 , 0 );
@@ -5091,7 +5092,7 @@ static enum test_result test_add_ret_meta(ENGINE_HANDLE *h,
50915092 check (last_meta.flags == 0 , " Invalid result for flags" );
50925093 check (last_meta.exptime == 0 , " Invalid result for expiration" );
50935094 check (last_meta.cas != 0 , " Invalid result for cas" );
5094- check (last_meta.revSeqno == 1 , " Invalid result for seqno" );
5095+ check (last_meta.revSeqno == 1ull , " Invalid result for seqno" );
50955096
50965097 // Check that re-adding a key fails
50975098 add_ret_meta (h, h1, " key" , 3 , " value" , 5 , 0 , 0 , 0 , 0 );
@@ -5108,7 +5109,7 @@ static enum test_result test_add_ret_meta(ENGINE_HANDLE *h,
51085109 check (last_meta.flags == 10 , " Invalid result for flags" );
51095110 check (last_meta.exptime == 1735689600 , " Invalid result for expiration" );
51105111 check (last_meta.cas != 0 , " Invalid result for cas" );
5111- check (last_meta.revSeqno == 1 , " Invalid result for seqno" );
5112+ check (last_meta.revSeqno == 1ull , " Invalid result for seqno" );
51125113
51135114 return SUCCESS;
51145115}
@@ -5178,7 +5179,7 @@ static enum test_result test_del_ret_meta(ENGINE_HANDLE *h,
51785179 check (last_meta.flags == 0 , " Invalid result for flags" );
51795180 check (last_meta.exptime == 0 , " Invalid result for expiration" );
51805181 check (last_meta.cas != 0 , " Invalid result for cas" );
5181- check (last_meta.revSeqno == 1 , " Invalid result for seqno" );
5182+ check (last_meta.revSeqno == 1ull , " Invalid result for seqno" );
51825183
51835184 del_ret_meta (h, h1, " key" , 3 , 0 , 0 );
51845185 checkeq (PROTOCOL_BINARY_RESPONSE_SUCCESS, last_status.load (),
@@ -5189,7 +5190,7 @@ static enum test_result test_del_ret_meta(ENGINE_HANDLE *h,
51895190 check (last_meta.flags == 0 , " Invalid result for flags" );
51905191 check (last_meta.exptime == 0 , " Invalid result for expiration" );
51915192 check (last_meta.cas != 0 , " Invalid result for cas" );
5192- check (last_meta.revSeqno == 2 , " Invalid result for seqno" );
5193+ check (last_meta.revSeqno == 2ull , " Invalid result for seqno" );
51935194
51945195 // Check that deleting a key with a cas succeeds.
51955196 add_ret_meta (h, h1, " key" , 3 , " value" , 5 , 0 , 0 , 10 , 1735689600 );
@@ -5199,7 +5200,7 @@ static enum test_result test_del_ret_meta(ENGINE_HANDLE *h,
51995200 check (last_meta.flags == 10 , " Invalid result for flags" );
52005201 check (last_meta.exptime == 1735689600 , " Invalid result for expiration" );
52015202 check (last_meta.cas != 0 , " Invalid result for cas" );
5202- check (last_meta.revSeqno == 3 , " Invalid result for seqno" );
5203+ check (last_meta.revSeqno == 3ull , " Invalid result for seqno" );
52035204
52045205 del_ret_meta (h, h1, " key" , 3 , 0 , last_meta.cas );
52055206 checkeq (PROTOCOL_BINARY_RESPONSE_SUCCESS, last_status.load (),
@@ -5210,7 +5211,7 @@ static enum test_result test_del_ret_meta(ENGINE_HANDLE *h,
52105211 check (last_meta.flags == 10 , " Invalid result for flags" );
52115212 check (last_meta.exptime == 1735689600 , " Invalid result for expiration" );
52125213 check (last_meta.cas != 0 , " Invalid result for cas" );
5213- check (last_meta.revSeqno == 4 , " Invalid result for seqno" );
5214+ check (last_meta.revSeqno == 4ull , " Invalid result for seqno" );
52145215
52155216 // Check that deleting a key with the wrong cas fails
52165217 add_ret_meta (h, h1, " key" , 3 , " value" , 5 , 0 , 0 , 0 , 0 );
@@ -5220,7 +5221,7 @@ static enum test_result test_del_ret_meta(ENGINE_HANDLE *h,
52205221 check (last_meta.flags == 0 , " Invalid result for flags" );
52215222 check (last_meta.exptime == 0 , " Invalid result for expiration" );
52225223 check (last_meta.cas != 0 , " Invalid result for cas" );
5223- check (last_meta.revSeqno == 5 , " Invalid result for seqno" );
5224+ check (last_meta.revSeqno == 5ull , " Invalid result for seqno" );
52245225
52255226 del_ret_meta (h, h1, " key" , 3 , 0 , last_meta.cas + 1 );
52265227 checkeq (PROTOCOL_BINARY_RESPONSE_KEY_EEXISTS, last_status.load (),
0 commit comments