Permalink
Browse files

fixed #410 crash at RT index on commit of document with large docid

  • Loading branch information...
tomatolog committed Aug 28, 2018
1 parent bc251ed commit bd8b3c976ff8b4667f55dfdd101b20a920137ac5
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/sphinxrt.cpp
@@ -496,7 +496,7 @@ struct RtDocWriter_t
void ZipDoc ( const RtDoc_t & tDoc )
{
CSphTightVector<BYTE> * pDocs = m_pDocs;
BYTE * pEnd = pDocs->AddN ( 5*sizeof(DWORD) );
BYTE * pEnd = pDocs->AddN ( 12*sizeof(DWORD) );
const BYTE * pBegin = pDocs->Begin();
ZipDocid ( pEnd, tDoc.m_uDocID - m_uLastDocID );
@@ -650,7 +650,7 @@ struct RtWordWriter_t
m_tLastKeyword.PutDelta ( *this, tWord.m_sWord+1, tWord.m_sWord[0] );
}
BYTE * pEnd = pWords->AddN ( 3*sizeof(DWORD) );
BYTE * pEnd = pWords->AddN ( 4*sizeof(DWORD) );
const BYTE * pBegin = pWords->Begin();
ZipDword ( pEnd, tWord.m_uDocs );

0 comments on commit bd8b3c9

Please sign in to comment.