[Xapian-tickets] [Xapian] #548: reopen should return flag indicating whether database has changed
Xapian
nobody at xapian.org
Thu Jun 2 10:39:48 BST 2011
#548: reopen should return flag indicating whether database has changed
-------------------------+--------------------------------------------------
Reporter: richard | Owner: richard
Type: enhancement | Status: new
Priority: normal | Milestone: 1.3.0
Component: Library API | Version: SVN trunk
Severity: normal | Blockedby:
Platform: All | Blocking:
-------------------------+--------------------------------------------------
It would sometimes be very useful to know whether a call to reopen() has
resulted in a new version being opened or not. This would allow things
like schemas stored in database metadata to be refreshed only if the
database has been modified. It seems natural enough to return this
information as a boolean flag from Database::reopen().
The information needed to provide this return value seems easily available
in chert, but may not be for all current or future backends.
The semantics would probably therefore need to be that a return value of
"false" means that the database has definitely not reopened, but "true"
means that the database might have been reopend. Any database can then
return "true" always, and be "correct".
--
Ticket URL: <http://trac.xapian.org/ticket/548>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list