From 2ee6092846af3c5befc133215500fc82d9d0fe2b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 24 Apr 2024 16:57:03 +0200 Subject: [FUSE] Reset cluster fail counter on successful upload --- src/fuse/cowfile.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3-55-g7522