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:
parent
18acb03f43
commit
a8751ae557
@ -23,7 +23,7 @@ from swift.common.storage_policy import POLICIES
|
||||
|
||||
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 -
|
||||
might be particularlly useful if you need to hack a fix into the reconciler
|
||||
and re-run it.
|
||||
|
@ -306,7 +306,7 @@ class AccountBroker(DatabaseBroker):
|
||||
|
||||
:param do_migrations: boolean, if True the policy stat dicts will
|
||||
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.
|
||||
|
||||
:returns: dict of policy stats where the key is the policy index and
|
||||
|
@ -155,7 +155,7 @@ class ContainerReplicator(db_replicator.Replicator):
|
||||
:param broker: the container broker with misplaced objects
|
||||
: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()
|
||||
misplaced = broker.get_misplaced_since(point, self.per_diff)
|
||||
|
@ -1447,10 +1447,10 @@ class TestAccountBrokerBeforePerPolicyContainerTrack(
|
||||
|
||||
# now create an impossible situation by adding a container for a
|
||||
# policy index that doesn't exist
|
||||
non_existant_policy_index = int(policy) + 1
|
||||
self.broker.put_container('test-non-existant-policy',
|
||||
non_existent_policy_index = int(policy) + 1
|
||||
self.broker.put_container('test-non-existent-policy',
|
||||
next(self.ts), 0, 0, 0,
|
||||
non_existant_policy_index)
|
||||
non_existent_policy_index)
|
||||
|
||||
total_container_count = self.broker.get_info()['container_count']
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user