From 397063b026155736d5519757581102bce1cec7ab Mon Sep 17 00:00:00 2001 From: root Date: Fri, 26 Dec 2014 14:48:26 -0600 Subject: [PATCH] added state 98 as a terminal state --- fuse/filecache.c | 4 +++- fuse/operations.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/fuse/filecache.c b/fuse/filecache.c index a45f1d3..169710a 100644 --- a/fuse/filecache.c +++ b/fuse/filecache.c @@ -163,7 +163,9 @@ int filecache_upload_patch(const char *quickkey, uint64_t local_revision, return -1; } fprintf(stderr, "status: %d, filerror: %d\n", status, fileerror); - if (status == 99) { + + // values 98 and 99 are terminal states for a completed upload + if (status == 99 || status == 98) { fprintf(stderr, "done\n"); break; } diff --git a/fuse/operations.c b/fuse/operations.c index e680c35..37cb390 100644 --- a/fuse/operations.c +++ b/fuse/operations.c @@ -517,7 +517,9 @@ int mediafirefs_release(const char *path, struct fuse_file_info *file_info) return -1; } fprintf(stderr, "status: %d, filerror: %d\n", status, fileerror); - if (status == 99) { + + // values 98 and 99 are terminal states for a completed upload + if (status == 99 || status == 98) { fprintf(stderr, "done\n"); break; }