Skip to content
Permalink
Browse files

fixed #272 optimize failed to merge disk chunks of RT index with larg…

…e documents count
  • Loading branch information
tomatolog committed May 1, 2018
1 parent ca39d9b commit 4510fa44ad54b5bbac53c591144501565130fcae
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/sphinx.cpp
@@ -14007,7 +14007,7 @@ bool CSphIndex_VLN::DoMerge ( const CSphIndex_VLN * pDstIndex, const CSphIndex_V
if ( !wrRows.OpenFile ( pDstIndex->GetIndexFileName("tmp.spa"), sError ) )
return false;

int64_t iExpectedDocs = pDstIndex->m_tStats.m_iTotalDocuments + pSrcIndex->GetStats().m_iTotalDocuments;
int64_t iExpectedDocs = pDstIndex->m_iDocinfo + pSrcIndex->m_iDocinfo;
AttrIndexBuilder_c tMinMax ( pDstIndex->m_tSchema );
int64_t iMinMaxSize = tMinMax.GetExpectedSize ( iExpectedDocs );
if ( iMinMaxSize>INT_MAX || iExpectedDocs>INT_MAX )

0 comments on commit 4510fa4

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