]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Fix pending upload bug
authorDavid Stainton <dstainton415@gmail.com>
Wed, 15 Apr 2015 18:10:01 +0000 (18:10 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Fri, 17 Apr 2015 17:13:50 +0000 (18:13 +0100)
- remove filepath from pending upload set BEFORE performing upload
This bug was introduced at commit 87657eb382da05039cce99862691efcc27243193

src/allmydata/frontends/drop_upload.py

index ff8c3c7e3ed0afd984c02f1245b54831fae31cd3..0dfe42b7d88c723f452994891085ff5ed753c452 100644 (file)
@@ -119,8 +119,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)