summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-04-24 16:57:03 +0200
committerSimon Rettberg2024-04-24 16:57:03 +0200
commit2ee6092846af3c5befc133215500fc82d9d0fe2b (patch)
tree6b194a2623ce78f7e203cb51933d279733ce6d37
parentgithub: retry apt-get calls (diff)
downloaddnbd3-2ee6092846af3c5befc133215500fc82d9d0fe2b.tar.gz
dnbd3-2ee6092846af3c5befc133215500fc82d9d0fe2b.tar.xz
dnbd3-2ee6092846af3c5befc133215500fc82d9d0fe2b.zip
[FUSE] Reset cluster fail counter on successful upload
-rw-r--r--src/fuse/cowfile.c1
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;
}