~styluseater/swift/lp610583

« back to all changes in this revision

Viewing changes to swift/common/db_replicator.py

  • Committer: Tarmac
  • Author(s): Monty Taylor
  • Date: 2010-07-25 01:45:27 UTC
  • mfrom: (39.1.1 align-openstack-sphinx)
  • Revision ID: hudson@openstack.org-20100725014527-86ly3l16d7jy64e5
Updated Sphinx config to match the config from Nova.

Show diffs side-by-side

added added

removed removed

Lines of Context:
435
435
 
436
436
 
437
437
class ReplicatorRpc(object):
438
 
    """Handle Replication RPC calls.  TODO: redbo document please :)"""
 
438
    """Handle Replication RPC calls.  TODO(redbo): document please :)"""
439
439
 
440
440
    def __init__(self, root, datadir, broker_class, mount_check=True):
441
441
        self.root = root
472
472
            info = broker.get_replication_info()
473
473
        except Exception, e:
474
474
            if 'no such table' in str(e):
475
 
                # TODO find a real logger
 
475
                # TODO(unknown): find a real logger
476
476
                print "Quarantining DB %s" % broker.db_file
477
477
                quarantine_db(broker.db_file, broker.db_type)
478
478
                return HTTPNotFound()