diff options
author | Simon Rettberg | 2024-04-24 16:57:03 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-04-24 16:57:03 +0200 |
commit | 2ee6092846af3c5befc133215500fc82d9d0fe2b (patch) | |
tree | 6b194a2623ce78f7e203cb51933d279733ce6d37 | |
parent | github: retry apt-get calls (diff) | |
download | dnbd3-2ee6092846af3c5befc133215500fc82d9d0fe2b.tar.gz dnbd3-2ee6092846af3c5befc133215500fc82d9d0fe2b.tar.xz dnbd3-2ee6092846af3c5befc133215500fc82d9d0fe2b.zip |
[FUSE] Reset cluster fail counter on successful upload
-rw-r--r-- | src/fuse/cowfile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fuse/cowfile.c b/src/fuse/cowfile.c index 4e27f56..82c7af7 100644 --- a/src/fuse/cowfile.c +++ b/src/fuse/cowfile.c @@ -608,6 +608,7 @@ static bool clusterUploadDoneHandler( CURLM *cm, CURLMsg *msg ) // didn't get updated again in the meantime. atomic_compare_exchange_strong( &uploadingCluster->cluster->timeChanged, &uploadingCluster->time, 0 ); uploadingCluster->cluster->uploads++; + uploadingCluster->cluster->fails = 0; totalBlocksUploaded++; success = true; } |