You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@quickstep.apache.org by na...@apache.org on 2016/06/10 21:06:20 UTC

incubator-quickstep git commit: Fix typos

Repository: incubator-quickstep
Updated Branches:
  refs/heads/memcpy_opt_profile 40db1f355 -> d939df627


Fix typos


Project: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/commit/d939df62
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/tree/d939df62
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/diff/d939df62

Branch: refs/heads/memcpy_opt_profile
Commit: d939df6271de5e76044e2e107e9600d1b9967f8d
Parents: 40db1f3
Author: Navneet Potti <na...@apache.org>
Authored: Fri Jun 10 16:05:32 2016 -0500
Committer: Navneet Potti <na...@apache.org>
Committed: Fri Jun 10 16:05:32 2016 -0500

----------------------------------------------------------------------
 cli/QuickstepCli.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quickstep/blob/d939df62/cli/QuickstepCli.cpp
----------------------------------------------------------------------
diff --git a/cli/QuickstepCli.cpp b/cli/QuickstepCli.cpp
index de4a1c6..56c2fce 100644
--- a/cli/QuickstepCli.cpp
+++ b/cli/QuickstepCli.cpp
@@ -337,6 +337,7 @@ int main(int argc, char* argv[]) {
   std::unique_ptr<SqlParserWrapper> parser_wrapper(new SqlParserWrapper());
   std::chrono::time_point<std::chrono::steady_clock> start, end;
 
+  unsigned int query_num = 0;
   for (;;) {
     string *command_string = new string();
     *command_string = line_reader.getNextCommand();
@@ -434,9 +435,9 @@ int main(int argc, char* argv[]) {
       }
 			// Start profiling 
 			if (!query_num) {
-        char *name = "profile.prof";
-        cout << "Writing to " << name << '\n';
-        ProfilerStart(name);
+        std::string name = "profile.prof";
+        std::cout << "Writing to " << name << '\n';
+        ProfilerStart(name.c_str());
       }
       ++query_num;
     }