Repository: mesos
Updated Branches:
  refs/heads/master b6d47056a -> 27cb2b1fa


Fixed compilation error in SLRP.

Review: https://reviews.apache.org/r/65792/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/27cb2b1f
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/27cb2b1f
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/27cb2b1f

Branch: refs/heads/master
Commit: 27cb2b1fad3d53748dced0acda133b3263a455b1
Parents: b6d4705
Author: Chun-Hung Hsiao <chhs...@mesosphere.io>
Authored: Fri Feb 23 17:21:50 2018 -0800
Committer: Benjamin Mahler <bmah...@apache.org>
Committed: Fri Feb 23 17:21:50 2018 -0800

----------------------------------------------------------------------
 src/resource_provider/storage/provider.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/27cb2b1f/src/resource_provider/storage/provider.cpp
----------------------------------------------------------------------
diff --git a/src/resource_provider/storage/provider.cpp 
b/src/resource_provider/storage/provider.cpp
index 33abc0e..63dde51 100644
--- a/src/resource_provider/storage/provider.cpp
+++ b/src/resource_provider/storage/provider.cpp
@@ -2459,7 +2459,7 @@ Future<string> 
StorageLocalResourceProviderProcess::validateCapability(
       google::protobuf::Map<string, string> volumeAttributes;
 
       if (metadata.isSome()) {
-        volumeAttributes.swap(convertLabelsToStringMap(metadata.get()).get());
+        volumeAttributes = convertLabelsToStringMap(metadata.get()).get();
       }
 
       csi::ValidateVolumeCapabilitiesRequest request;

Reply via email to