diff --git a/wellcoordination/benchmark/rubis.hpp b/wellcoordination/benchmark/rubis.hpp index fd762fd..34ac4a9 100644 --- a/wellcoordination/benchmark/rubis.hpp +++ b/wellcoordination/benchmark/rubis.hpp @@ -74,6 +74,11 @@ class Rubis : public ReplicatedObject //g2.push_back(static_cast(MethodType::REMOVE_CUSTOMER)); synch_groups.push_back(g2); + std::vector g3; + g3.push_back(static_cast(MethodType::PLACE_BID)); + g3.push_back(static_cast(MethodType::CLOSE_AUCTION)); + synch_groups.push_back(g3); + for (int i = 0; i < 100; i++) { directbuysell[i] = 1000; registeredusers.insert(i); @@ -133,7 +138,7 @@ class Rubis : public ReplicatedObject void openAction(int a_id, int stock) { - if(openauctions.count(a_id)==0 && closeauctions.count(a_id)==0){ + if(openauctions.count(a_id)==0){ auction[a_id][0]=stock; openauctions.insert(a_id); }