From af7def3368a7e1ed7cec29242bc265c5c17bffd3 Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" Date: Mon, 11 Jan 2021 16:26:46 +0100 Subject: [PATCH] some bugfixes --- datapoollocal/LocalPoolDataSetBase.cpp | 3 ++- internalError/InternalErrorDataset.h | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/datapoollocal/LocalPoolDataSetBase.cpp b/datapoollocal/LocalPoolDataSetBase.cpp index 006239f6..163ef342 100644 --- a/datapoollocal/LocalPoolDataSetBase.cpp +++ b/datapoollocal/LocalPoolDataSetBase.cpp @@ -49,8 +49,9 @@ LocalPoolDataSetBase::LocalPoolDataSetBase(sid_t sid, LocalPoolDataSetBase::LocalPoolDataSetBase( PoolVariableIF **registeredVariablesArray, - const size_t maxNumberOfVariables): + const size_t maxNumberOfVariables, bool protectEveryReadCommitCall): PoolDataSetBase(registeredVariablesArray, maxNumberOfVariables) { + this->setReadCommitProtectionBehaviour(protectEveryReadCommitCall); } diff --git a/internalError/InternalErrorDataset.h b/internalError/InternalErrorDataset.h index fa91116d..bd9062ed 100644 --- a/internalError/InternalErrorDataset.h +++ b/internalError/InternalErrorDataset.h @@ -21,11 +21,11 @@ public: InternalErrorDataset(object_id_t objectId): StaticLocalDataSet(sid_t(objectId , ERROR_SET_ID)) {} - lp_var_t tmHits = lp_var_t(hkManager->getOwner(), + lp_var_t tmHits = lp_var_t(sid.objectId, TM_HITS, this); - lp_var_t queueHits = lp_var_t(hkManager->getOwner(), + lp_var_t queueHits = lp_var_t(sid.objectId, QUEUE_HITS, this); - lp_var_t storeHits = lp_var_t(hkManager->getOwner(), + lp_var_t storeHits = lp_var_t(sid.objectId, STORE_HITS, this); };