You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-27 21:01:50 +03:00
extentmap iterator (#2540)
This commit is contained in:
@ -133,7 +133,7 @@ int8_t setupCwd()
|
||||
string workdir = startup::StartUp::tmpDir();
|
||||
|
||||
if (workdir.length() == 0)
|
||||
workdir = ".";
|
||||
workdir = std::string(".");
|
||||
|
||||
int8_t rc = chdir(workdir.c_str());
|
||||
return rc;
|
||||
|
@ -1089,7 +1089,7 @@ void ExtentMap::mergeExtentsMaxMin(CPMaxMinMergeMap_t& cpMap, bool useLock)
|
||||
grabEMIndex(WRITE);
|
||||
}
|
||||
|
||||
for (it = cpMap.begin(); it != cpMap.end(); ++it)
|
||||
for (auto it = cpMap.begin(); it != cpMap.end(); /* bottom erase will increase */)
|
||||
{
|
||||
auto emIt = findByLBID(it->first);
|
||||
if (emIt == fExtentMapRBTree->end())
|
||||
@ -1265,7 +1265,7 @@ void ExtentMap::mergeExtentsMaxMin(CPMaxMinMergeMap_t& cpMap, bool useLock)
|
||||
return; // Leave when all extents in map are matched
|
||||
|
||||
// Deleting objects from map, may speed up successive searches
|
||||
cpMap.erase(it);
|
||||
it = cpMap.erase(it);
|
||||
}
|
||||
|
||||
throw logic_error("ExtentMap::mergeExtentsMaxMin(): lbid not found");
|
||||
|
Reference in New Issue
Block a user