From: David Stainton Date: Wed, 15 Jul 2015 19:24:00 +0000 (-0700) Subject: don't double increment version X-Git-Url: https://git.rkrishnan.org/simplejson/frontends/FTP-and-SFTP.rst?a=commitdiff_plain;h=9e7142d67c02d4fd49b1f23dfab9759b8020c8f5;p=tahoe-lafs%2Ftahoe-lafs.git don't double increment version --- diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 43cfbd87..ce260343 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -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)