]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Use relative paths in magic folder db.
authorDaira Hopwood <daira@jacaranda.org>
Mon, 20 Jul 2015 16:30:56 +0000 (17:30 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Thu, 1 Oct 2015 00:19:46 +0000 (01:19 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/magic_folder.py

index ec6833ad048ca055cd35aa560c7c3d56170a649f..76dd03dc24841dfcf73aaa05659a941537b37920 100644 (file)
@@ -407,10 +407,10 @@ class MagicFolder(service.MultiService):
                           "(this is normal for temporary objects)" % (path_u,))
                 self._stats_provider.count('magic_folder.objects_disappeared', 1)
                 d2 = defer.succeed(None)
-                if self._db.check_file_db_exists(path_u): #FIXME relpath_u?
+                if self._db.check_file_db_exists(relpath_u):
                     d2.addCallback(get_metadata)
                     def set_deleted(metadata):
-                        current_version = self._db.get_local_file_version(path_u) + 1 #FIXME relpath_u?
+                        current_version = self._db.get_local_file_version(relpath_u) + 1
                         metadata['version'] = current_version
                         metadata['deleted'] = True
                         emptyUploadable = Data("", self._convergence)
@@ -423,7 +423,7 @@ class MagicFolder(service.MultiService):
             if os.path.isdir(path_u):
                 return _add_dir(encoded_name_u)
             elif os.path.isfile(path_u):
-                version = self._db.get_local_file_version(path_u) #FIXME relpath_u?
+                version = self._db.get_local_file_version(relpath_u)
                 if version is None:
                     version = 0
                 else: