We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d29b35 commit ce6c5d3Copy full SHA for ce6c5d3
secondary/secondary.cpp
@@ -82,7 +82,7 @@ bool SecondaryIndex_c::Setup ( const std::string & sFile, std::string & sError )
82
m_uVersion = m_tReader.Read_uint32();
83
84
// starting with v.6 we have backward compatibility
85
- if ( m_uVersion<6 )
+ if ( m_uVersion<6 || m_uVersion>STORAGE_VERSION )
86
{
87
sError = FormatStr ( "Unable to load inverted index: %s is v.%d, binary is v.%d", sFile.c_str(), m_uVersion, STORAGE_VERSION );
88
return false;
0 commit comments