summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2024-04-24 16:57:03 +0200
committerSimon Rettberg2024-05-13 18:26:42 +0200
commitb9cd5c55822db664c1ec8fe212278fe6d4cf38a0 (patch)
treecb6a6e205e9e0ab0ddb2f855fa1f8dec5daf5843 /src
parentgithub: retry apt-get calls (diff)
downloaddnbd3-b9cd5c55822db664c1ec8fe212278fe6d4cf38a0.tar.gz
dnbd3-b9cd5c55822db664c1ec8fe212278fe6d4cf38a0.tar.xz
dnbd3-b9cd5c55822db664c1ec8fe212278fe6d4cf38a0.zip
[FUSE] Reset cluster fail counter on successful upload
Diffstat (limited to 'src')
-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;
}