You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Refactor better extent info bookkeeping structure and handling
Logs for research purposes Keep progress - may not build Good interface to collect LBIDs and CPInfo's Write Engine compiles with new interface New interface breaks things the least way and allows for new features to be added gradually. Still ironing design - rewriting parts of WE Keep progress commit Write Engine compiles, going to test I could introduce crashes there. Let's see. Disable logging for tests Fixing build problems - keep progress commit Changed related to new interface Add back accidentally removed m_txnLBIDMap.find Remove printf/cout; up-to-date comment for AddLBIDtoList Add "auto" type annotation Work on PR comments Descriptive vector emptines check
This commit is contained in:
@ -578,24 +578,18 @@ uint8_t WE_DMLCommandProc::processSingleInsert(messageqcpp::ByteStream& bs, std:
|
||||
|
||||
if (idbdatafile::IDBPolicy::useHdfs())
|
||||
{
|
||||
// XXX THIS IS WRONG
|
||||
//save the extent info to mark them invalid, after flush, the meta file will be gone.
|
||||
std::tr1::unordered_map<TxnID, SP_TxnLBIDRec_t>::iterator mapIter;
|
||||
std::tr1::unordered_map<TxnID, SP_TxnLBIDRec_t> m_txnLBIDMap = fWEWrapper.getTxnMap();
|
||||
|
||||
try
|
||||
{
|
||||
mapIter = m_txnLBIDMap.find(txnid.id);
|
||||
auto mapIter = m_txnLBIDMap.find(txnid.id);
|
||||
|
||||
if (mapIter != m_txnLBIDMap.end())
|
||||
{
|
||||
SP_TxnLBIDRec_t spTxnLBIDRec = (*mapIter).second;
|
||||
std::tr1::unordered_map<BRM::LBID_t, uint32_t> ::iterator listIter = spTxnLBIDRec->m_LBIDMap.begin();
|
||||
|
||||
while (listIter != spTxnLBIDRec->m_LBIDMap.end())
|
||||
{
|
||||
lbidList.push_back(listIter->first);
|
||||
listIter++;
|
||||
}
|
||||
lbidList = spTxnLBIDRec->m_LBIDs;
|
||||
}
|
||||
}
|
||||
catch (...) {}
|
||||
@ -3800,23 +3794,16 @@ uint8_t WE_DMLCommandProc::getWrittenLbids(messageqcpp::ByteStream& bs, std::str
|
||||
vector<LBID_t> lbidList;
|
||||
|
||||
bs >> txnId;
|
||||
std::tr1::unordered_map<TxnID, SP_TxnLBIDRec_t>::iterator mapIter;
|
||||
std::tr1::unordered_map<TxnID, SP_TxnLBIDRec_t> m_txnLBIDMap = fWEWrapper.getTxnMap();
|
||||
|
||||
try
|
||||
{
|
||||
mapIter = m_txnLBIDMap.find(txnId);
|
||||
auto mapIter = m_txnLBIDMap.find(txnId);
|
||||
|
||||
if (mapIter != m_txnLBIDMap.end())
|
||||
{
|
||||
SP_TxnLBIDRec_t spTxnLBIDRec = (*mapIter).second;
|
||||
std::tr1::unordered_map<BRM::LBID_t, uint32_t> ::iterator listIter = spTxnLBIDRec->m_LBIDMap.begin();
|
||||
|
||||
while (listIter != spTxnLBIDRec->m_LBIDMap.end())
|
||||
{
|
||||
lbidList.push_back(listIter->first);
|
||||
listIter++;
|
||||
}
|
||||
lbidList = spTxnLBIDRec->m_LBIDs;
|
||||
}
|
||||
}
|
||||
catch (...) {}
|
||||
@ -3888,24 +3875,19 @@ uint8_t WE_DMLCommandProc::processFlushFiles(messageqcpp::ByteStream& bs, std::s
|
||||
|
||||
if (idbdatafile::IDBPolicy::useHdfs())
|
||||
{
|
||||
// XXX THIS IS WRONG!!!
|
||||
//save the extent info to mark them invalid, after flush, the meta file will be gone.
|
||||
std::tr1::unordered_map<TxnID, SP_TxnLBIDRec_t>::iterator mapIter;
|
||||
std::tr1::unordered_map<TxnID, SP_TxnLBIDRec_t> m_txnLBIDMap = fWEWrapper.getTxnMap();
|
||||
|
||||
try
|
||||
{
|
||||
mapIter = m_txnLBIDMap.find(txnId);
|
||||
auto mapIter = m_txnLBIDMap.find(txnId);
|
||||
|
||||
if (mapIter != m_txnLBIDMap.end())
|
||||
{
|
||||
SP_TxnLBIDRec_t spTxnLBIDRec = (*mapIter).second;
|
||||
std::tr1::unordered_map<BRM::LBID_t, uint32_t> ::iterator listIter = spTxnLBIDRec->m_LBIDMap.begin();
|
||||
lbidList = spTxnLBIDRec->m_LBIDs;
|
||||
|
||||
while (listIter != spTxnLBIDRec->m_LBIDMap.end())
|
||||
{
|
||||
lbidList.push_back(listIter->first);
|
||||
listIter++;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (...) {}
|
||||
|
Reference in New Issue
Block a user