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:
parent
0860b559ee
commit
b37ea1915a
@ -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)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user