Skip to content

Commit

Permalink
Merge "Remove unused code from container sync"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Mar 22, 2016
2 parents fd0bcba + 88b5758 commit e41c593
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions swift/container/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
whataremyips, Timestamp, decode_timestamps)
from swift.common.daemon import Daemon
from swift.common.http import HTTP_UNAUTHORIZED, HTTP_NOT_FOUND
from swift.common.storage_policy import POLICIES
from swift.common.wsgi import ConfigString


Expand Down Expand Up @@ -238,15 +237,6 @@ def __init__(self, conf, container_ring=None, logger=None):
_('Unable to load internal client from config: %r (%s)') %
(internal_client_conf_path, err))

def get_object_ring(self, policy_idx):
"""
Get the ring object to use based on its policy.
:policy_idx: policy index as defined in swift.conf
:returns: appropriate ring object
"""
return POLICIES.get_object_ring(policy_idx, self.swift_dir)

def run_forever(self, *args, **kwargs):
"""
Runs container sync scans until stopped.
Expand Down Expand Up @@ -364,8 +354,6 @@ def container_sync(self, path):
row = rows[0]
if row['ROWID'] > sync_point1:
break
key = hash_path(info['account'], info['container'],
row['name'], raw_digest=True)
# This node will only initially sync out one third of the
# objects (if 3 replicas, 1/4 if 4, etc.) and will skip
# problematic rows as needed in case of faults.
Expand Down

0 comments on commit e41c593

Please sign in to comment.