]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
don't double increment version
authorDavid Stainton <dstainton415@gmail.com>
Wed, 15 Jul 2015 19:24:00 +0000 (12:24 -0700)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 15 Sep 2015 16:56:02 +0000 (17:56 +0100)
src/allmydata/frontends/magic_folder.py

index 43cfbd87defccc5636c119c19709f9894eab252d..ce2603439f408250a17fd9a9fbb3fed2f7fd70bc 100644 (file)
@@ -395,7 +395,7 @@ class MagicFolder(service.MultiService):
                     d2.addCallback(get_metadata)
                     def set_deleted(metadata):
                         current_version = self._db.get_local_file_version(path) + 1
-                        metadata['version'] = current_version + 1
+                        metadata['version'] = current_version
                         metadata['deleted'] = True
                         emptyUploadable = Data("", self._convergence)
                         return self._upload_dirnode.add_file(name, emptyUploadable, overwrite=True, metadata=metadata)