1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-06-13 16:01:32 +03:00

MCOL-2055. Only flush the oids from the primproc cache

This commit is contained in:
Jose Rojas
2020-12-02 18:58:02 +00:00
parent 69550cbe78
commit d1908f7a0f

View File

@ -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<BRM::OID_t> oids {static_cast<int32_t>(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;