projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbd2659
)
don't double increment version
author
David Stainton
<dstainton415@gmail.com>
Wed, 15 Jul 2015 19:24:00 +0000
(12:24 -0700)
committer
Daira Hopwood
<daira@jacaranda.org>
Tue, 15 Sep 2015 16:56:02 +0000
(17:56 +0100)
src/allmydata/frontends/magic_folder.py
patch
|
blob
|
history
diff --git
a/src/allmydata/frontends/magic_folder.py
b/src/allmydata/frontends/magic_folder.py
index 43cfbd87defccc5636c119c19709f9894eab252d..ce2603439f408250a17fd9a9fbb3fed2f7fd70bc 100644
(file)
--- 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)