]> 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>
Tue, 28 Apr 2015 18:26:57 +0000 (19:26 +0100)
- remove filepath from pending upload set BEFORE performing upload
This bug was introduced at commit 87657eb382da05039cce99862691efcc27243193

src/allmydata/frontends/drop_upload.py

index 7ff29b0e2c1a07c35dbe59802fe99bf12d50f41d..0dacb6925bd482bb204cf525735bc0b87e540e51 100644 (file)
@@ -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)