mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-04 16:56:59 +01:00
fix(fuse): end a mirror pass at the stop (B169)
A stop that came while a mirror pass was uploading let the pass go on to the next level of folders until the stop gave up on it and the runtime's end cancelled the uploads under it. Once the daemon is stopping, a batch starts none of its waiting ops, lets the ones sending finish, and ends the pass; the remote walk and a new pass stop too.
This commit is contained in:
1 parent
8e54ed0517
commit
4757b957d2
6 files changed
+149
-14
No files matched your search
@@ -227,6 +227,10 @@ pub(super) enum PassAbort {
|
||||
Interrupted,
|
||||
/// The pass could not establish its diff (a walk or the baseline load failed).
|
||||
Failed(String),
|
||||
/// The daemon is stopping. What the pass sent before the stop has landed or
|
||||
/// will be cancelled with the runtime; nothing more is sent, and the next
|
||||
/// start's pass picks up from the baseline.
|
||||
Stopped,
|
||||
}
|
||||
|
||||
impl From<String> for PassAbort {
|
||||
|
||||
Reference in new issue
Block a user