fix: slob truncated file check.

fix #1541
This commit is contained in:
YiFang Xiao 2024-06-14 22:52:15 +08:00 committed by xiaoyifang
parent 1e37d760e2
commit 5712f63b8e

View file

@ -678,14 +678,7 @@ SlobDictionary::SlobDictionary( string const & id, string const & indexFile, vec
idxHeader( idx.read< IdxHeader >() )
{
// Open data file
try {
sf.open( dictionaryFiles[ 0 ].c_str() );
}
catch ( std::exception & e ) {
gdWarning( "Slob dictionary initializing failed: %s, error: %s\n", dictionaryFiles[ 0 ].c_str(), e.what() );
return;
}
// Initialize the indexes