removeConcurrentAccess(filePath);
break;
case LogCenterConstants.FD_API_TYPE_LOCK_START:
- addStartAccessData(new FileAccess(filePath, pid, tid, fd,
- apiType, eventTime));
if(event.getLockType() == AnalyzerConstants.F_SETLKW) {// F_SETLKW
addStartAccessData(new FileAccess(filePath, pid, tid, fd,
LogCenterConstants.FD_API_TYPE_LOCK_WAIT_START, eventTime));
+ }else{
+ addStartAccessData(new FileAccess(filePath, pid, tid, fd,
+ LogCenterConstants.FD_API_TYPE_LOCK_START, eventTime));
}
addCurrentLock(filePath);
break;
if(event.getLockType() == AnalyzerConstants.F_SETLKW) {// F_SETLKW
addEndAccessData(pid, tid, fd, filePath, eventTime,
size, LogCenterConstants.FD_API_TYPE_LOCK_WAIT_START, errNo);
+ addStartAccessData(new FileAccess(filePath, pid, tid, fd,
+ LogCenterConstants.FD_API_TYPE_LOCK_START, eventTime));
}
break;
case LogCenterConstants.FD_API_TYPE_UNLOCK: