in theory this is all we need to keep from stepping on our own toes; if we have a delete bug after this we need to look at that freaking map and it's constituents, specifically the NetworkId member

This commit is contained in:
DarthArgus
2016-12-09 22:10:54 +00:00
parent 64eda543f9
commit 8834b81283
3 changed files with 38 additions and 59 deletions
@@ -69,8 +69,6 @@ bool Snapshot::saveToDB(DB::Session *session)
{
NOT_NULL(session);
std::lock_guard<std::mutex> lock(snapshot_mtx);
CustomStepListType::iterator step;
for (step=m_customStepList.begin(); step !=m_customStepList.end(); ++step)
{
@@ -197,7 +195,6 @@ void Snapshot::addLocator(ObjectLocator *newLocator)
{
NOT_NULL(newLocator);
std::lock_guard<std::mutex> lock(snapshot_mtx);
m_locatorList.push_back(newLocator);
}
@@ -231,7 +228,6 @@ bool Snapshot::saveTimestamp(DB::Session *session)
void Snapshot::addCustomPersistStep(CustomPersistStep *newStep)
{
std::lock_guard<std::mutex> lock(snapshot_mtx);
NOT_NULL(newStep);
m_customStepList.push_back(newStep);
}
@@ -242,7 +238,6 @@ void Snapshot::saveCompleted()
{
for (CustomStepListType::iterator step=m_customStepList.begin(); step !=m_customStepList.end(); ++step)
{
std::lock_guard<std::mutex> lock(snapshot_mtx);
NOT_NULL(*step);
(*step)->onComplete();
}