Repository: mesos Updated Branches: refs/heads/1.5.x 1b27db1c4 -> 0f426a7a2
Made `UriDiskProfileAdaptor` be able to update profile selectors. Review: https://reviews.apache.org/r/67078 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/73938039 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/73938039 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/73938039 Branch: refs/heads/1.5.x Commit: 7393803902d3aff12801d93136a3e802f8d86834 Parents: 1b27db1 Author: Chun-Hung Hsiao <chhs...@mesosphere.io> Authored: Thu May 10 20:27:24 2018 -0700 Committer: Chun-Hung Hsiao <chhs...@mesosphere.io> Committed: Fri May 11 15:36:46 2018 -0700 ---------------------------------------------------------------------- src/resource_provider/storage/uri_disk_profile.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/73938039/src/resource_provider/storage/uri_disk_profile.cpp ---------------------------------------------------------------------- diff --git a/src/resource_provider/storage/uri_disk_profile.cpp b/src/resource_provider/storage/uri_disk_profile.cpp index 665798f..459ee6c 100644 --- a/src/resource_provider/storage/uri_disk_profile.cpp +++ b/src/resource_provider/storage/uri_disk_profile.cpp @@ -279,11 +279,8 @@ void UriDiskProfileAdaptorProcess::notify( return; } - // Profiles can only be added, so if the parsed data is the same size, - // nothing has changed and no notifications need to be sent. - if (parsed.profile_matrix().size() <= profileMatrix.size()) { - return; - } + // TODO(chhsiao): No need to update the profile matrix and send notifications + // if the parsed mapping has the same size and profile selectors. // The fetched mapping satisfies our invariants.