From 05642d2958477354ce2807a93417524a11234639 Mon Sep 17 00:00:00 2001 From: zheng yin Date: Fri, 30 Sep 2016 11:11:20 +0800 Subject: [PATCH] fix word spelling mistake Change-Id: Ia7b03e52b8d6a334fc2b67c94912effe0e659941 --- doc/source/admin_guide.rst | 2 +- swift/common/middleware/versioned_writes.py | 4 ++-- test/unit/common/middleware/test_versioned_writes.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/source/admin_guide.rst b/doc/source/admin_guide.rst index e5ea68f9fb..1cba77c30c 100644 --- a/doc/source/admin_guide.rst +++ b/doc/source/admin_guide.rst @@ -141,7 +141,7 @@ The first line reports that there are 256 partitions with 3 copies in region 1; and this is an expected output in this case (single region with 3 replicas) as reported by the "Max" value. -However, there is some inbalance in the cluster, more precisely in zone 3. The +However, there is some imbalance in the cluster, more precisely in zone 3. The "Max" reports a maximum of 1 copy in this zone; however 50.00% of the partitions are storing 2 replicas in this zone (which is somewhat expected, because there are more disks in this zone). diff --git a/swift/common/middleware/versioned_writes.py b/swift/common/middleware/versioned_writes.py index 437a94b385..f960b4c406 100644 --- a/swift/common/middleware/versioned_writes.py +++ b/swift/common/middleware/versioned_writes.py @@ -461,7 +461,7 @@ class VersionedWritesContext(WSGIContext): def handle_obj_versions_put(self, req, versions_cont, api_version, account_name, object_name): """ - Copy current version of object to versions_container before proceding + Copy current version of object to versions_container before proceeding with original request. :param req: original request. @@ -486,7 +486,7 @@ class VersionedWritesContext(WSGIContext): Handle DELETE requests when in history mode. Copy current version of object to versions_container and write a - delete marker before proceding with original request. + delete marker before proceeding with original request. :param req: original request. :param versions_cont: container where previous versions of the object diff --git a/test/unit/common/middleware/test_versioned_writes.py b/test/unit/common/middleware/test_versioned_writes.py index af1676da2b..e23def4b80 100644 --- a/test/unit/common/middleware/test_versioned_writes.py +++ b/test/unit/common/middleware/test_versioned_writes.py @@ -427,7 +427,7 @@ class VersionedWritesTestCase(VersionedWritesBaseTestCase): 'CONTENT_LENGTH': '100'}) status, headers, body = self.call_vw(req) self.assertEqual(status, '201 Created') - # The middleware now auths the request before the inital GET, the + # The middleware now auths the request before the initial GET, the # same GET that gets the X-Object-Manifest back. So a second auth is # now done. self.assertEqual(len(self.authorized), 2)