From d72094c8ee790eed22355b998244aef5630ee24c Mon Sep 17 00:00:00 2001 From: David Stainton Date: Wed, 15 Apr 2015 18:10:01 +0000 Subject: [PATCH] Fix pending upload bug - remove filepath from pending upload set BEFORE performing upload This bug was introduced at commit 87657eb382da05039cce99862691efcc27243193 --- src/allmydata/frontends/drop_upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/frontends/drop_upload.py b/src/allmydata/frontends/drop_upload.py index 7ff29b0e..0dacb692 100644 --- a/src/allmydata/frontends/drop_upload.py +++ b/src/allmydata/frontends/drop_upload.py @@ -171,8 +171,8 @@ class DropUploader(service.MultiService): if sys.platform != "win32": name = name.decode(get_filesystem_encoding()) - u = FileName(path.path, self._convergence) self._pending.remove(path) + u = FileName(path.path, self._convergence) return self._parent.add_file(name, u) d.addCallback(_add_file) -- 2.45.2