]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
add a couple of logging statements when detecting a versioned object
authorAlfredo Deza <adeza@redhat.com>
Thu, 5 Feb 2015 16:36:02 +0000 (11:36 -0500)
committerAlfredo Deza <adeza@redhat.com>
Tue, 10 Mar 2015 19:47:57 +0000 (15:47 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
radosgw_agent/client.py

index c1a1df8d8f30616ccfd412644920ec6d42bc9581..70d7a17923d71b1769407429f5774421e092ed90 100644 (file)
@@ -302,8 +302,10 @@ def sync_object_intra_region(connection, bucket_name, obj, src_zone,
     }
 
     if is_versioned(obj):
+        log.debug('detected obj as versioned: %s' % obj.name)
         # delete_marker may not exist in the obj
         if getattr(obj, 'delete_marker', None) is True:
+            log.debug('obj %s has a delete_marker, marking for deletion' % obj.name)
             # when the object has a delete marker we need to create it with
             # a delete marker on the destination rather than copying
             return mark_delete_object(connection, bucket_name, obj, params=params)