fix m_bFilled not being set to false
This commit is contained in:
@@ -299,10 +299,10 @@ FileSet *FilenameDB::GetFileSet( CString dir, bool create )
|
|||||||
this->DelFileSet( i );
|
this->DelFileSet( i );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create the FileSet and insert it. Since it's marked !m_bFilled, if other
|
/* Create the FileSet and insert it. Set it to !m_bFilled, so if other threads
|
||||||
* threads happen to try to use this directory before we finish filling it,
|
* happen to try to use this directory before we finish filling it, they'll wait. */
|
||||||
* they'll wait. */
|
|
||||||
ret = new FileSet;
|
ret = new FileSet;
|
||||||
|
ret->m_bFilled = false;
|
||||||
dirs[lower] = ret;
|
dirs[lower] = ret;
|
||||||
|
|
||||||
/* Unlock while we populate the directory. This way, reads to other directories
|
/* Unlock while we populate the directory. This way, reads to other directories
|
||||||
|
|||||||
Reference in New Issue
Block a user