Skip to content

Commit ce6c5d3

Browse files
committed
fixed load of the new secondary index format by the old secondary index library
1 parent 1d29b35 commit ce6c5d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

secondary/secondary.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ bool SecondaryIndex_c::Setup ( const std::string & sFile, std::string & sError )
8282
m_uVersion = m_tReader.Read_uint32();
8383

8484
// starting with v.6 we have backward compatibility
85-
if ( m_uVersion<6 )
85+
if ( m_uVersion<6 || m_uVersion>STORAGE_VERSION )
8686
{
8787
sError = FormatStr ( "Unable to load inverted index: %s is v.%d, binary is v.%d", sFile.c_str(), m_uVersion, STORAGE_VERSION );
8888
return false;

0 commit comments

Comments
 (0)