Skip to content

Commit fb16fef

Browse files
committed
[FIX] fix index compatibility check for non-reduced indexes
1 parent 63c5357 commit fb16fef

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/lambda.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,9 @@ loadDbIndexFromDisk(TGlobalHolder & globalHolder,
253253
else
254254
path += ".sa";
255255

256-
// Check if the index is of the old format (pre 0.9.0)
257-
if (fileExists(toCString(path + ".txt.concat"))) // these files are not written anymore
256+
// Check if the index is of the old format (pre 0.9.0) by looking for different files
257+
if ((TGlobalHolder::alphReduction && fileExists(toCString(path + ".txt.concat"))) ||
258+
(!TGlobalHolder::alphReduction && TGlobalHolder::indexIsFM && !fileExists(toCString(path + ".lf.drv.wtc.24"))))
258259
{
259260
std::cerr << ((options.verbosity == 0) ? strIdent : std::string())
260261
<< " failed.\n"

0 commit comments

Comments
 (0)