Fixed typos in comments. Review: https://reviews.apache.org/r/57714
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/50583f15 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/50583f15 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/50583f15 Branch: refs/heads/master Commit: 50583f15f88fe251266dfc4093389453c13dd9ad Parents: 5167828 Author: Neil Conway <[email protected]> Authored: Thu Mar 16 14:58:34 2017 -0700 Committer: Neil Conway <[email protected]> Committed: Tue Apr 11 13:12:09 2017 -0700 ---------------------------------------------------------------------- src/master/allocator/mesos/hierarchical.cpp | 2 +- src/tests/hierarchical_allocator_tests.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/50583f15/src/master/allocator/mesos/hierarchical.cpp ---------------------------------------------------------------------- diff --git a/src/master/allocator/mesos/hierarchical.cpp b/src/master/allocator/mesos/hierarchical.cpp index ff9e234..051f749 100644 --- a/src/master/allocator/mesos/hierarchical.cpp +++ b/src/master/allocator/mesos/hierarchical.cpp @@ -1514,7 +1514,7 @@ void HierarchicalAllocatorProcess::__allocate() hashmap<SlaveID, Resources> offeredSharedResources; // Quota comes first and fair share second. Here we process only those - // roles, for which quota is set (quota'ed roles). Such roles form a + // roles for which quota is set (quota'ed roles). Such roles form a // special allocation group with a dedicated sorter. foreach (const SlaveID& slaveId, slaveIds) { foreach (const string& role, quotaRoleSorter->sort()) { http://git-wip-us.apache.org/repos/asf/mesos/blob/50583f15/src/tests/hierarchical_allocator_tests.cpp ---------------------------------------------------------------------- diff --git a/src/tests/hierarchical_allocator_tests.cpp b/src/tests/hierarchical_allocator_tests.cpp index e343dc3..33e7b45 100644 --- a/src/tests/hierarchical_allocator_tests.cpp +++ b/src/tests/hierarchical_allocator_tests.cpp @@ -4247,7 +4247,7 @@ TEST_F(HierarchicalAllocatorTest, DisproportionateQuotaVsAllocation) Quota quota = createQuota(QUOTA_ROLE, quotaResources); allocator->setQuota(QUOTA_ROLE, quota); - // Register two frameworks where on is using a role with quota. + // Register two frameworks where one is using a role with quota. FrameworkInfo framework1 = createFrameworkInfo({QUOTA_ROLE}); FrameworkInfo framework2 = createFrameworkInfo({NO_QUOTA_ROLE}); allocator->addFramework(framework1.id(), framework1, {}, true);
