Repository: mesos
Updated Branches:
  refs/heads/1.6.x 71d466396 -> 89ee7df74


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/89ee7df7
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/89ee7df7
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/89ee7df7

Branch: refs/heads/1.6.x
Commit: 89ee7df7415694ee56ec93b6c7bd3a579c005641
Parents: 71d4663
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:26:54 2018 -0700

----------------------------------------------------------------------
 src/resource_provider/storage/uri_disk_profile_adaptor.cpp | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/89ee7df7/src/resource_provider/storage/uri_disk_profile_adaptor.cpp
----------------------------------------------------------------------
diff --git a/src/resource_provider/storage/uri_disk_profile_adaptor.cpp 
b/src/resource_provider/storage/uri_disk_profile_adaptor.cpp
index 300ea12..614590e 100644
--- a/src/resource_provider/storage/uri_disk_profile_adaptor.cpp
+++ b/src/resource_provider/storage/uri_disk_profile_adaptor.cpp
@@ -278,11 +278,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.
 

Reply via email to