]> git.ipfire.org Git - thirdparty/sqlite.git/commit
Refactor PLWriter in preparation for buffered-document change.
authorshess <shess@noemail.net>
Tue, 20 Mar 2007 23:52:37 +0000 (23:52 +0000)
committershess <shess@noemail.net>
Tue, 20 Mar 2007 23:52:37 +0000 (23:52 +0000)
commit4607fc06f6c700bc7a8f24041039e83d0733a8ab
tree4f2386d90a27ef1ea19517a43189148c119267a6
parent3b8a05f6816a77cde324742df285ea75c89f3153
Refactor PLWriter in preparation for buffered-document change.
Currently, PLWriter (Position List Writer) creates a locally-owned
DataBuffer to write into.  This is necessary to support doclist
collection during tokenization, where there is no obvious buffer to
write output to, but is not necessary for the other users of PLWriter.
 This change adds a DLCollector (Doc List Collector) structure to
handle the tokenization case.

Also fix a potential memory leak in writeZeroSegment().  In case of
error from leafWriterStep(), the DataBuffer dl was being leaked. (CVS 3706)

FossilOrigin-Name: 1b9918e20767aebc9c1e7523027139e5fbc12688
ext/fts2/fts2.c
manifest
manifest.uuid