mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-02 19:25:52 +08:00
Add MinV2 and AndV2 into AtomicOps test workload
This commit is contained in:
parent
792c639d99
commit
ed2d261266
@ -55,8 +55,7 @@ struct AtomicOpsWorkload : TestWorkload {
|
||||
ubsum = 0;
|
||||
|
||||
int64_t randNum = sharedRandomNumber / 10;
|
||||
if(opType == -1)
|
||||
opType = randNum % 8;
|
||||
if (opType == -1) opType = randNum % 10;
|
||||
|
||||
switch(opType) {
|
||||
case 0:
|
||||
@ -91,6 +90,15 @@ struct AtomicOpsWorkload : TestWorkload {
|
||||
TEST(true); //Testing atomic ByteMax
|
||||
opType = MutationRef::ByteMax;
|
||||
break;
|
||||
case 8:
|
||||
TEST(true); // Testing atomic MinV2
|
||||
opType = MutationRef::MinV2;
|
||||
case 9:
|
||||
TEST(true); // Testing atomic AndV2
|
||||
opType = MutationRef::AndV2;
|
||||
// case 10:
|
||||
// TEST(true); // Testing atomic CompareAndClear Not supported yet
|
||||
// opType = MutationRef::CompareAndClear
|
||||
default:
|
||||
ASSERT(false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user