* Like `commit_lock_file()`, but rename the lockfile to the provided * `path`. `path` must be on the same filesystem as the lock file. */
| 329 | * `path`. `path` must be on the same filesystem as the lock file. |
| 330 | */ |
| 331 | static inline int commit_lock_file_to(struct lock_file *lk, const char *path) |
| 332 | { |
| 333 | return rename_tempfile(&lk->tempfile, path); |
| 334 | } |
| 335 | |
| 336 | /* |
| 337 | * Roll back `lk`: close the file descriptor and/or file pointer and |
no test coverage detected