[Xapian-tickets] [Xapian] #173: Bindings should have an explicit WritableDatabase::close() method
Xapian
nobody at xapian.org
Thu Apr 24 14:19:49 BST 2008
#173: Bindings should have an explicit WritableDatabase::close() method
-----------------------------+----------------------------------------------
Reporter: richard | Owner: richard
Type: enhancement | Status: assigned
Priority: normal | Milestone:
Component: Xapian-bindings | Version: SVN HEAD
Severity: normal | Resolution:
Keywords: | Blockedby:
Platform: All | Blocking:
-----------------------------+----------------------------------------------
Changes (by richard):
* type: defect => enhancement
Old description:
> In garbage collected languages, it is hard to ensure that a
> WritableDatabase
> object has been closed, because this requires ensuring that no objects
> still
> hold a reference to it. To make this easier, WritableDatabases should
> have an
> explicit close() method, which would delete the underlying C++ object.
> After
> this method has been called, all other methods on the WritableDatabase
> object in
> the bindings would be invalid.
New description:
In garbage collected languages, it is hard to ensure that a
WritableDatabase
object has been closed, because this requires ensuring that no objects
still
hold a reference to it. To make this easier, WritableDatabases should
have an
explicit close() method, which would delete the underlying C++ object.
After
this method has been called, all other methods on the WritableDatabase
object in
the bindings would be invalid.
--
--
Ticket URL: <http://trac.xapian.org/ticket/173#comment:8>
Xapian <http://trac.xapian.org>
Xapian
More information about the Xapian-tickets
mailing list