[Xapian-tickets] [Xapian] #639: omega : should reindex file's write when needed

Xapian nobody at xapian.org
Sat Mar 22 20:57:17 GMT 2014


#639: omega : should reindex file's write when needed
--------------------------------+------------------
        Reporter:  egarette     |      Owner:  olly
            Type:  enhancement  |     Status:  new
        Priority:  normal       |  Milestone:
       Component:  Other        |    Version:
        Severity:  normal       |   Keywords:
      Blocked By:               |   Blocking:
Operating System:  All          |
--------------------------------+------------------
\
\
 If we change write access for a specified file, omega don't reindex file,
 so user that lost right access could see it in query.

 In ticket #632 i suggest to used ctime instead of mtime. But this proposal
 is not suitable.

 Here is the Olly's reply:

 > The change from mtime to ctime will mean that the "last modified" time
 reported in the Omega UI will now in general not actually be the last time
 the contents of the file were changed.

 > I'm also slightly concerned that the mtime -> ctime change will result
 in reindexing files in many more cases - e.g. if I tar up a file tree and
 Xapian database and untar it on another machine (as a non-privileged
 user), the mtimes are preserved but the ctimes change. So this change
 would mean that omindex would have to reindex every document in this case
 (and without root access, I don't think one can avoid that).

 > I think we probably need to store the ctime separately (so lastmod still
 works as before) and make whether ctime or mtime is used for reindexing an
 option, or else find a better way to know when ACLs have changed - perhaps
 only checking the ACL for changes if the ctime has changed but the mtime
 hasn't.
\
\
\

--
Ticket URL: <http://trac.xapian.org/ticket/639>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list