From eb3c94ce5e1ca066812daec7778d611c42a23b77 Mon Sep 17 00:00:00 2001 From: kianda17 Date: Wed, 31 Jul 2024 17:33:23 +0100 Subject: [PATCH] clear-page fault config --- libs/libpcache/src/config/config.cpp | 6 +++--- libs/libpcache/src/faults.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/libpcache/src/config/config.cpp b/libs/libpcache/src/config/config.cpp index b45aa4f..d08d904 100644 --- a/libs/libpcache/src/config/config.cpp +++ b/libs/libpcache/src/config/config.cpp @@ -202,7 +202,7 @@ unordered_map> Config::load_config (string filenam if (injection.contains("return")) { ret = toml::find(injection,"return"); } else { - ret = true; + ret = false; } faults::ReorderF * fault = NULL; @@ -283,7 +283,7 @@ unordered_map> Config::load_config (string filenam if (injection.contains("return")) { ret = toml::find(injection,"return"); } else { - ret = true; + ret = false; } faults::SplitWriteF * fault = nullptr; @@ -383,7 +383,7 @@ unordered_map> Config::load_config (string filenam if (injection.contains("return")) { ret = toml::find(injection,"return"); } else { - ret = true; + ret = false; } faults::ClearF * fault = NULL; diff --git a/libs/libpcache/src/faults.cpp b/libs/libpcache/src/faults.cpp index b8f6e5f..ffbfede 100644 --- a/libs/libpcache/src/faults.cpp +++ b/libs/libpcache/src/faults.cpp @@ -29,7 +29,7 @@ ReorderF::ReorderF() : Fault(TORN_SEQ) { this->op = ""; this->persist = v; this->occurrence = 0; - this->ret = true; + this->ret = false; } ReorderF::~ReorderF(){} @@ -79,7 +79,7 @@ SplitWriteF::SplitWriteF() : Fault(TORN_OP) { this->persist = p; this->parts_bytes = v; this->parts = 0; - this->ret = true; + this->ret = false; } SplitWriteF::~SplitWriteF() {}