resolve the issue of renaming after server shutdown