You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mz...@apache.org on 2019/01/09 22:43:59 UTC

[mesos] branch 1.5.x updated: Fixed compilation error in SLRP.

This is an automated email from the ASF dual-hosted git repository.

mzhu pushed a commit to branch 1.5.x
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/1.5.x by this push:
     new 27acb05  Fixed compilation error in SLRP.
27acb05 is described below

commit 27acb0578e3128bf1f5992cba30c01f643740a62
Author: Chun-Hung Hsiao <ch...@mesosphere.io>
AuthorDate: Fri Feb 23 17:21:50 2018 -0800

    Fixed compilation error in SLRP.
    
    Review: https://reviews.apache.org/r/65792/
---
 src/resource_provider/storage/provider.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/resource_provider/storage/provider.cpp b/src/resource_provider/storage/provider.cpp
index aeb6d6f..47a9768 100644
--- a/src/resource_provider/storage/provider.cpp
+++ b/src/resource_provider/storage/provider.cpp
@@ -2423,7 +2423,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;