You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@quickstep.apache.org by zu...@apache.org on 2017/03/13 09:01:15 UTC
incubator-quickstep git commit: Minor refactored AdmitRequestMessage
constructor.
Repository: incubator-quickstep
Updated Branches:
refs/heads/master 14fcd61b4 -> 70e76637f
Minor refactored AdmitRequestMessage constructor.
Project: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/commit/70e76637
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/tree/70e76637
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/diff/70e76637
Branch: refs/heads/master
Commit: 70e76637f0f0b90c3e1fc9db31a70a195e2609d1
Parents: 14fcd61
Author: Zuyu Zhang <zu...@apache.org>
Authored: Mon Mar 13 02:00:37 2017 -0700
Committer: Zuyu Zhang <zu...@apache.org>
Committed: Mon Mar 13 02:00:37 2017 -0700
----------------------------------------------------------------------
query_execution/AdmitRequestMessage.hpp | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-quickstep/blob/70e76637/query_execution/AdmitRequestMessage.hpp
----------------------------------------------------------------------
diff --git a/query_execution/AdmitRequestMessage.hpp b/query_execution/AdmitRequestMessage.hpp
index dd3d49b..d93fd91 100644
--- a/query_execution/AdmitRequestMessage.hpp
+++ b/query_execution/AdmitRequestMessage.hpp
@@ -51,9 +51,8 @@ class AdmitRequestMessage {
*
* @param query_handle The handle of the query requesting to be admitted.
**/
- explicit AdmitRequestMessage(QueryHandle *query_handle) {
- query_handles_.push_back(query_handle);
- }
+ explicit AdmitRequestMessage(QueryHandle *query_handle)
+ : query_handles_({ query_handle }) {}
/**
* @brief Get the query handles from this message.
@@ -63,7 +62,7 @@ class AdmitRequestMessage {
}
private:
- std::vector<QueryHandle*> query_handles_;
+ const std::vector<QueryHandle*> query_handles_;
DISALLOW_COPY_AND_ASSIGN(AdmitRequestMessage);
};