mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Add tests for the matchinfo-like test function. Fix problems found in test and fts5 code by doing so.
FossilOrigin-Name: 9e3aafe44a0813aa2a0c6172fdba1440b8a973ec
This commit is contained in:
@ -3944,7 +3944,7 @@ static void fts5FlushOneHash(Fts5Index *p){
|
||||
|
||||
/* Decide if the term will fit on the current leaf. If it will not,
|
||||
** flush the leaf to disk here. */
|
||||
if( (pBuf->n + nTerm + 2) > pgsz ){
|
||||
if( pBuf->n>4 && (pBuf->n + nTerm + 2) > pgsz ){
|
||||
fts5WriteFlushLeaf(p, &writer);
|
||||
pBuf = &writer.writer.buf;
|
||||
if( (nTerm + 32) > pBuf->nSpace ){
|
||||
|
Reference in New Issue
Block a user