Correct misspelled words

In some files I found misspelling words.

bin/swift-reconciler-enqueue#l26
   primarly => primarily
swift/account/backend.py#l309
   ommited => omitted
swift/container/replicator.py#l158
   successfull => successful
test/unit/account/test_backend.py#1450
   non_existant_policy_index => non_existent_policy_index
test/unit/account/test_backend.py#1451
   'test-non-existant-policy'=> 'test-non-existent-policy'
test/unit/account/test_backend.py#1453
   non_existant_policy_index => non_existent_policy_index

Change-Id: I976236e3200a6fbdc20be464acff182b6cface81
This commit is contained in:
Cedric Dos Santos 2014-11-25 12:37:05 +01:00
parent 18acb03f43
commit a8751ae557
4 changed files with 6 additions and 6 deletions

View File

@ -23,7 +23,7 @@ from swift.common.storage_policy import POLICIES
from swift.container.reconciler import add_to_reconciler_queue from swift.container.reconciler import add_to_reconciler_queue
""" """
This tool is primarly for debugging and development but can be used an example This tool is primarily for debugging and development but can be used an example
of how an operator could enqueue objects manually if a problem is discovered - of how an operator could enqueue objects manually if a problem is discovered -
might be particularlly useful if you need to hack a fix into the reconciler might be particularlly useful if you need to hack a fix into the reconciler
and re-run it. and re-run it.

View File

@ -306,7 +306,7 @@ class AccountBroker(DatabaseBroker):
:param do_migrations: boolean, if True the policy stat dicts will :param do_migrations: boolean, if True the policy stat dicts will
always include the 'container_count' key; always include the 'container_count' key;
otherwise it may be ommited on legacy databases otherwise it may be omitted on legacy databases
until they are migrated. until they are migrated.
:returns: dict of policy stats where the key is the policy index and :returns: dict of policy stats where the key is the policy index and

View File

@ -155,7 +155,7 @@ class ContainerReplicator(db_replicator.Replicator):
:param broker: the container broker with misplaced objects :param broker: the container broker with misplaced objects
:param point: the last verified ``reconciler_sync_point`` :param point: the last verified ``reconciler_sync_point``
:returns: the last successfull enqueued rowid :returns: the last successful enqueued rowid
""" """
max_sync = broker.get_max_row() max_sync = broker.get_max_row()
misplaced = broker.get_misplaced_since(point, self.per_diff) misplaced = broker.get_misplaced_since(point, self.per_diff)

View File

@ -1447,10 +1447,10 @@ class TestAccountBrokerBeforePerPolicyContainerTrack(
# now create an impossible situation by adding a container for a # now create an impossible situation by adding a container for a
# policy index that doesn't exist # policy index that doesn't exist
non_existant_policy_index = int(policy) + 1 non_existent_policy_index = int(policy) + 1
self.broker.put_container('test-non-existant-policy', self.broker.put_container('test-non-existent-policy',
next(self.ts), 0, 0, 0, next(self.ts), 0, 0, 0,
non_existant_policy_index) non_existent_policy_index)
total_container_count = self.broker.get_info()['container_count'] total_container_count = self.broker.get_info()['container_count']