From d1908f7a0ff8ec2001cace325d1c417d9bf98e9f Mon Sep 17 00:00:00 2001 From: Jose Rojas Date: Wed, 2 Dec 2020 18:58:02 +0000 Subject: [PATCH] MCOL-2055. Only flush the oids from the primproc cache --- writeengine/wrapper/writeengine.cpp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/writeengine/wrapper/writeengine.cpp b/writeengine/wrapper/writeengine.cpp index 790530c68..ec4f33ec5 100644 --- a/writeengine/wrapper/writeengine.cpp +++ b/writeengine/wrapper/writeengine.cpp @@ -1684,10 +1684,20 @@ int WriteEngineWrapper::insertColumnRecs(const TxnID& txnid, if (rc == NO_ERROR) { - rc = cacheutils::flushPrimProcCache(); - if (rc != 0) - rc = ERR_BLKCACHE_FLUSH_LIST; // translate to WE error - } + if (dctnryStructList.size() > 0) + { + vector oids {static_cast(tableOid)}; + for (const DctnryStruct &dctnryStruct : dctnryStructList) + { + oids.push_back(dctnryStruct.dctnryOid); + } + + rc = flushOIDsFromCache(oids); + + if (rc != 0) + rc = ERR_BLKCACHE_FLUSH_LIST; // translate to WE error + } + } } return rc;