Added Mem/LocalizationDataSaved parameter

This commit is contained in:
matlabbe
2020-04-05 19:21:20 -04:00
parent e83838f744
commit cdff33b1c2
11 changed files with 59 additions and 12 deletions
+15
View File
@@ -935,6 +935,21 @@ void DBDriver::getLastNodeId(int & id) const
_dbSafeAccessMutex.unlock();
}
void DBDriver::getLastMapId(int & mapId) const
{
// look in the trash
_trashesMutex.lock();
if(_trashSignatures.size())
{
mapId = _trashSignatures.rbegin()->second->mapId();
}
_trashesMutex.unlock();
_dbSafeAccessMutex.lock();
this->getLastIdQuery("Node", mapId, "map_id");
_dbSafeAccessMutex.unlock();
}
void DBDriver::getLastWordId(int & id) const
{
// look in the trash