From fa35e38c9f83f704eb087f80157cbe33b23b9db2 Mon Sep 17 00:00:00 2001 From: Kai Zhang Date: Fri, 14 Aug 2015 16:46:35 -0700 Subject: [PATCH] Fix some minor typos Fixed some typos in function name and comments. Change-Id: Ida76ab4b331a51b71e57650702acc136e66ba4b2 --- swift/proxy/controllers/obj.py | 2 +- test/probe/test_reconstructor_durable.py | 2 +- test/probe/test_reconstructor_revert.py | 4 ++-- test/unit/obj/test_diskfile.py | 2 +- test/unit/proxy/test_server.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/swift/proxy/controllers/obj.py b/swift/proxy/controllers/obj.py index 2aac83f2e5..9633c4b271 100644 --- a/swift/proxy/controllers/obj.py +++ b/swift/proxy/controllers/obj.py @@ -623,7 +623,7 @@ class BaseObjectController(Controller): """ This method is responsible for establishing connection with storage nodes and sending the data to each one of those - nodes. The process of transfering data is specific to each + nodes. The process of transferring data is specific to each Storage Policy, thus it is required for each policy specific ObjectController to provide their own implementation of this method. diff --git a/test/probe/test_reconstructor_durable.py b/test/probe/test_reconstructor_durable.py index cbb94163e9..ccd9e1c78c 100644 --- a/test/probe/test_reconstructor_durable.py +++ b/test/probe/test_reconstructor_durable.py @@ -95,7 +95,7 @@ class TestReconstructorPropDurable(ECProbeTest): if e.errno != errno.ENOENT: raise - # fire up reconstructor to propogate the .durable + # fire up reconstructor to propagate the .durable self.reconstructor.once() # fragment is still exactly as it was before! diff --git a/test/probe/test_reconstructor_revert.py b/test/probe/test_reconstructor_revert.py index 1daf7a3725..5e10c1337e 100755 --- a/test/probe/test_reconstructor_revert.py +++ b/test/probe/test_reconstructor_revert.py @@ -159,7 +159,7 @@ class TestReconstructorRevert(ECProbeTest): hnode_id = (hnode['port'] - 6000) / 10 self.reconstructor.once(number=hnode_id) - # first threee primaries have data again + # first three primaries have data again for onode in (onodes[0], onodes[2]): self.direct_get(onode, opart) @@ -218,7 +218,7 @@ class TestReconstructorRevert(ECProbeTest): # enable the first node again self.revive_drive(p_dev2) - # propogate the delete... + # propagate the delete... # fire up reconstructor on handoff nodes only for hnode in hnodes: hnode_id = (hnode['port'] - 6000) / 10 diff --git a/test/unit/obj/test_diskfile.py b/test/unit/obj/test_diskfile.py index 6e9c498028..47ef9b102d 100644 --- a/test/unit/obj/test_diskfile.py +++ b/test/unit/obj/test_diskfile.py @@ -3598,7 +3598,7 @@ class TestECDiskFile(DiskFileMixin, unittest.TestCase): ts.internal + '.durable', ]) - def test_purge_non_existant_fragment_index(self): + def test_purge_non_existent_fragment_index(self): ts = self.ts() frag_index = 7 df = self._simple_get_diskfile(frag_index=frag_index) diff --git a/test/unit/proxy/test_server.py b/test/unit/proxy/test_server.py index 85c27fa2ed..153e45c0c0 100644 --- a/test/unit/proxy/test_server.py +++ b/test/unit/proxy/test_server.py @@ -6081,7 +6081,7 @@ class TestObjectECRangedGET(unittest.TestCase): self.assertEqual(gotten_obj, self.obj[3783:7879]) def test_aligned_left(self): - # Firts byte is aligned to a segment boundary, last byte is not + # First byte is aligned to a segment boundary, last byte is not status, headers, gotten_obj = self._get_obj("bytes=0-5500") self.assertEqual(status, 206) self.assertEqual(headers['Content-Length'], "5501")