real time index: generate MODIFY event when receiving inotify MOVED_TO. We do not seem to receive a modify as was apparently the case at some point

This commit is contained in:
Jean-Francois Dockes 2011-10-12 18:30:47 +02:00
parent 0860b559ee
commit b37ea1915a

View File

@ -616,8 +616,10 @@ bool RclIntf::getEvent(RclMonEvent& ev, int secs)
if (evp->mask & IN_ISDIR) { if (evp->mask & IN_ISDIR) {
ev.m_etyp = RclMonEvent::RCLEVT_DIRCREATE; ev.m_etyp = RclMonEvent::RCLEVT_DIRCREATE;
} else { } else {
// Return null event. Will get modify event later // We used to return null event because we would get a
return true; // modify event later, but it seems not to be the case any
// more (10-2011). So generate MODIFY event
ev.m_etyp = RclMonEvent::RCLEVT_MODIFY;
} }
} else if (evp->mask & (IN_IGNORED)) { } else if (evp->mask & (IN_IGNORED)) {
if (!m_idtopath.erase(evp->wd)) { if (!m_idtopath.erase(evp->wd)) {