quickstep-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jianq...@apache.org
Subject [56/62] [abbrv] incubator-quickstep git commit: Minor refactored AdmitRequestMessage constructor.
Date Wed, 15 Mar 2017 19:01:15 GMT
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/LIP-time-decomposition
Commit: 70e76637f0f0b90c3e1fc9db31a70a195e2609d1
Parents: 14fcd61
Author: Zuyu Zhang <zuyuz@apache.org>
Authored: Mon Mar 13 02:00:37 2017 -0700
Committer: Zuyu Zhang <zuyuz@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);
 };


Mime
View raw message