Skip to content

Conversation

@contrun
Copy link
Contributor

@contrun contrun commented Feb 18, 2019

see #49

@skywind3000
Copy link
Owner

Thanks, would you please keep the indent ? I am using tab instead of 4-spaces

@skywind3000
Copy link
Owner

skywind3000 commented Feb 19, 2019

what is the return code and error message if you use rename for:

/usr/bin/

The patch introduced two additonal system call. (open/close), I am trying to minimize them for performance reason if possible, thousand of path need to be validate when a new path add in or updating an old path. (_zlua --add xxx).

@contrun
Copy link
Contributor Author

contrun commented Feb 19, 2019

No problem. Did it.

@contrun
Copy link
Contributor Author

contrun commented Feb 19, 2019

I think rename only fails on read only file system. Your performance concern is reasonable. I changed the program logic to only open file on return code 30.

@skywind3000 skywind3000 merged commit e5c78e3 into skywind3000:master Feb 19, 2019
@skywind3000
Copy link
Owner

thanks

@skywind3000
Copy link
Owner

v1.5.4 released for this and other changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants