Skip to content
Permalink
Browse files

fixed #963 indextool wrong report for block index check on empty index

  • Loading branch information...
tomatolog committed Jul 25, 2019
1 parent c0c56ba commit 1266d54800242709fbe2c34e72eb69b6595b23bd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/sphinx.cpp
@@ -18251,7 +18251,7 @@ void CSphIndex_VLN::DebugCheck_BlockIndex ( DebugCheckContext_t & tCtx, DebugChe
int64_t iAllRowsTotal = m_iDocinfo + (m_iDocinfoIndex+1)*2;
DWORD uStride = m_tSchema.GetRowSize();
int64_t iLoadedRowItems = tCtx.m_tAttrReader.GetFilesize() / sizeof(CSphRowitem);
if ( iAllRowsTotal*uStride > iLoadedRowItems )
if ( iAllRowsTotal*uStride>iLoadedRowItems && m_iDocinfo )
tReporter.Fail ( "rowitems count mismatch (expected=" INT64_FMT ", loaded=" INT64_FMT ")", iAllRowsTotal*uStride, iLoadedRowItems );

// check size

0 comments on commit 1266d54

Please sign in to comment.
You can’t perform that action at this time.