]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
obsync: pull object metadata from swift store 7/head
authorKyle Marsh <kyle.marsh@dreamhost.com>
Wed, 21 Dec 2011 01:08:21 +0000 (17:08 -0800)
committerKyle Marsh <kyle.marsh@dreamhost.com>
Wed, 21 Dec 2011 01:08:21 +0000 (17:08 -0800)
Obsync wasn't pulling object metadata from swift stores and thus wasn't
syncing metadata when reading from a swift store.  This commit fixes that.

src/obsync/obsync

index 025577d318a26daa925d8ccecc986e5c5eed1d68..d4dc9ccd907bd4e7b1422f6801f1b039b5443d89 100755 (executable)
@@ -771,6 +771,7 @@ class SwiftStoreIterator(object):
         # This will raise StopIteration when there are no more objects to
         # iterate on
         obj = self.generator.next()
+        obj = self.container.get_object(obj.name)
         ret = Object(obj.name, etag_to_md5(obj._etag), obj.size, swift_object_to_meta(obj))
         return ret