aboutsummaryrefslogtreecommitdiff
path: root/sysutils/apache-mesos/files/patch-src_master_quota.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/apache-mesos/files/patch-src_master_quota.cpp')
-rw-r--r--sysutils/apache-mesos/files/patch-src_master_quota.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/apache-mesos/files/patch-src_master_quota.cpp b/sysutils/apache-mesos/files/patch-src_master_quota.cpp
new file mode 100644
index 000000000000..250fac51ea12
--- /dev/null
+++ b/sysutils/apache-mesos/files/patch-src_master_quota.cpp
@@ -0,0 +1,20 @@
+--- src/master/quota.cpp.orig 2019-10-01 20:10:13 UTC
++++ src/master/quota.cpp
+@@ -62,7 +62,7 @@ Try<bool> UpdateQuota::perform(
+
+ foreach (const QuotaConfig& config, configs) {
+ // Check if there is already quota stored for the role.
+- int configIndex = find_if(
++ int configIndex = std::find_if(
+ registryConfigs.begin(),
+ registryConfigs.end(),
+ [&](const QuotaConfig& registryConfig) {
+@@ -91,7 +91,7 @@ Try<bool> UpdateQuota::perform(
+ google::protobuf::RepeatedPtrField<Registry::Quota>& quotas =
+ *registry->mutable_quotas();
+
+- int quotaIndex = find_if(
++ int quotaIndex = std::find_if(
+ quotas.begin(),
+ quotas.end(),
+ [&](const Registry::Quota& quota) {