Fixed deletion stats
This commit is contained in:
@@ -237,10 +237,8 @@ namespace lms::scanner
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!objectIdsToRemove.empty())
|
if (!objectIdsToRemove.empty())
|
||||||
{
|
context.stats.deletions += removeObjects<Object>(session, objectIdsToRemove, true);
|
||||||
removeObjects<Object>(session, objectIdsToRemove, true);
|
|
||||||
context.stats.deletions += objectIdsToRemove.size();
|
|
||||||
}
|
|
||||||
_progressCallback(context.currentStepStats);
|
_progressCallback(context.currentStepStats);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -254,7 +252,7 @@ namespace lms::scanner
|
|||||||
}
|
}
|
||||||
|
|
||||||
// process all remaining objects
|
// process all remaining objects
|
||||||
removeObjects<Object>(session, objectIdsToRemove, false);
|
context.stats.deletions += removeObjects<Object>(session, objectIdsToRemove, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace lms::scanner
|
} // namespace lms::scanner
|
||||||
|
|||||||
Reference in New Issue
Block a user