1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +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) if (rc == NO_ERROR)
{ {
rc = cacheutils::flushPrimProcCache(); if (dctnryStructList.size() > 0)
if (rc != 0) {
rc = ERR_BLKCACHE_FLUSH_LIST; // translate to WE error 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; return rc;