#15 Have hardlinker check and acquire lock?
Closed 7 years ago Opened 7 years ago by tibbs.

The hardlinker can work in parallel with the mirror client (though it will occasionally find missing files). It doesn't work well if the file lists aren't in a stable state, though. It should (with a possible override) try to avoid this by taking the same lock as the client does while it's processing the file lists. It can release it immediately after.

fcntl.flock() and /usr/bin/flock "should" be compatible.


Thinking more about this, I just don't see the point. If the hardlinker finds missing files it will just move on. If it's being run regularly then it makes very little difference. And if it is taking a while to run, the last thing you want is to make your mirror outdated because of it.

Metadata Update from @tibbs:
- Issue untagged with: soon
- Issue status updated to: Closed (was: Open)

7 years ago

Login to comment on this ticket.

Metadata