diff --git a/fdbrpc/sim2.actor.cpp b/fdbrpc/sim2.actor.cpp index be4e2741a6..1b743c4403 100644 --- a/fdbrpc/sim2.actor.cpp +++ b/fdbrpc/sim2.actor.cpp @@ -1266,7 +1266,7 @@ public: processesDead.push_back(processInfo); excluded++; } - else if (!processInfo->isCleared()) { + else if (processInfo->isCleared()) { processesDead.push_back(processInfo); cleared++; } diff --git a/fdbrpc/simulator.h b/fdbrpc/simulator.h index 64f0a788bb..c4b44d9d08 100644 --- a/fdbrpc/simulator.h +++ b/fdbrpc/simulator.h @@ -77,8 +77,8 @@ public: bool isReliable() const { return !failed && fault_injection_p1 == 0 && fault_injection_p2 == 0; } bool isAvailable() const { return !isExcluded() && isReliable(); } - bool isExcluded() const { return !excluded; } - bool isCleared() const { return !cleared; } + bool isExcluded() const { return excluded; } + bool isCleared() const { return cleared; } // Returns true if the class represents an acceptable worker bool isAvailableClass() const {