<br><br><div><span class="gmail_quote">On 5/3/06, <b class="gmail_sendername">Olly Betts</b> &lt;<a href="mailto:olly@survex.com">olly@survex.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It seems this has cropped up before - see Michael Salib's point &quot;2.&quot;<br>here:<br><br><a href="http://article.gmane.org/gmane.comp.search.xapian.general/1387">http://article.gmane.org/gmane.comp.search.xapian.general/1387
</a><br><br>I've not yet implemented WritableDatabase::close() though.<br><br>Incidentally, the stale lockfile on exit issue goes away if you use<br>flint instead of quartz, though the database lock will still be held<br>
while the process keeps running which could still be a problem.<br><br>Cheers,<br>&nbsp;&nbsp;&nbsp;&nbsp;Olly<br></blockquote></div><br>thanks for the hint about using Flint instead.<br>I thought I was but I guess I didn't add it to my .profile
<br><br>using Flint it starts and stops and doesn't cause any problems now.<br><br>a .close() method on WritableDatabase might be a good addition. <br>Just so you can force the db closed when you think it might not be being de-referenced reliably.
<br><br>It seems to be the same type of issue listed in that link you posted. Twisted is probably holding on to the Service object<br>and that is holding on to the db object.<br><br>I KNOW I am not sharing db objects nor document objects since it is all single threaded and all self contained in that one index method.
<br><br><br>