1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-08-09 13:59:50 +00:00

Fix wrong assertion.

This commit is contained in:
King_DuckZ 2015-11-27 19:49:29 +00:00
parent 56735c9d86
commit f6c638e6e4

View file

@ -259,7 +259,7 @@ namespace din {
} }
); );
assert(m_local_data->done_count == m_local_data->paths.size()); assert(m_local_data->done_count == m_local_data->file_count);
#else #else
hash_dir( hash_dir(
m_local_data->paths.begin(), m_local_data->paths.begin(),
@ -279,7 +279,7 @@ namespace din {
void Indexer::add_to_db (const std::string& parSetName, char parType) const { void Indexer::add_to_db (const std::string& parSetName, char parType) const {
#if defined(WITH_PROGRESS_FEEDBACK) #if defined(WITH_PROGRESS_FEEDBACK)
assert(m_local_data->done_count == m_local_data->paths.size()); assert(m_local_data->done_count == m_local_data->file_count);
#endif #endif
PathName base_path(m_local_data->paths.front().path); PathName base_path(m_local_data->paths.front().path);
std::vector<FileRecordData> data; std::vector<FileRecordData> data;