ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From isap...@apache.org
Subject ignite git commit: IGNITE-5133: Now CPP examples return non-zero code on error.
Date Wed, 21 Jun 2017 16:38:04 GMT
Repository: ignite
Updated Branches:
  refs/heads/master 7e9457e71 -> 7ffe15ee8


IGNITE-5133: Now CPP examples return non-zero code on error.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/7ffe15ee
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/7ffe15ee
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/7ffe15ee

Branch: refs/heads/master
Commit: 7ffe15ee892b8be7d83d424c08cebfd7b011d28d
Parents: 7e9457e
Author: Igor Sapego <isapego@gridgain.com>
Authored: Wed Jun 21 19:36:03 2017 +0300
Committer: Igor Sapego <isapego@gridgain.com>
Committed: Wed Jun 21 19:37:45 2017 +0300

----------------------------------------------------------------------
 .../cpp/examples/compute-example/src/compute_example.cpp        | 2 ++
 .../continuous-query-example/src/continuous_query_example.cpp   | 2 ++
 .../platforms/cpp/examples/odbc-example/src/odbc_example.cpp    | 5 ++---
 .../cpp/examples/put-get-example/src/put_get_example.cpp        | 5 ++---
 .../platforms/cpp/examples/query-example/src/query_example.cpp  | 5 ++---
 5 files changed, 10 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/7ffe15ee/modules/platforms/cpp/examples/compute-example/src/compute_example.cpp
----------------------------------------------------------------------
diff --git a/modules/platforms/cpp/examples/compute-example/src/compute_example.cpp b/modules/platforms/cpp/examples/compute-example/src/compute_example.cpp
index 3426475..e6bee8d 100644
--- a/modules/platforms/cpp/examples/compute-example/src/compute_example.cpp
+++ b/modules/platforms/cpp/examples/compute-example/src/compute_example.cpp
@@ -165,6 +165,8 @@ int main()
     catch (IgniteError& err)
     {
         std::cout << "An error occurred: " << err.GetText() << std::endl;
+
+        return err.GetCode();
     }
 
     std::cout << std::endl;

http://git-wip-us.apache.org/repos/asf/ignite/blob/7ffe15ee/modules/platforms/cpp/examples/continuous-query-example/src/continuous_query_example.cpp
----------------------------------------------------------------------
diff --git a/modules/platforms/cpp/examples/continuous-query-example/src/continuous_query_example.cpp
b/modules/platforms/cpp/examples/continuous-query-example/src/continuous_query_example.cpp
index 3b17b53..8670bf6 100644
--- a/modules/platforms/cpp/examples/continuous-query-example/src/continuous_query_example.cpp
+++ b/modules/platforms/cpp/examples/continuous-query-example/src/continuous_query_example.cpp
@@ -242,6 +242,8 @@ int main()
     catch (IgniteError& err)
     {
         std::cout << "An error occurred: " << err.GetText() << std::endl;
+
+        return err.GetCode();
     }
 
     std::cout << std::endl;

http://git-wip-us.apache.org/repos/asf/ignite/blob/7ffe15ee/modules/platforms/cpp/examples/odbc-example/src/odbc_example.cpp
----------------------------------------------------------------------
diff --git a/modules/platforms/cpp/examples/odbc-example/src/odbc_example.cpp b/modules/platforms/cpp/examples/odbc-example/src/odbc_example.cpp
index 11ba56f..29c2a4a 100644
--- a/modules/platforms/cpp/examples/odbc-example/src/odbc_example.cpp
+++ b/modules/platforms/cpp/examples/odbc-example/src/odbc_example.cpp
@@ -556,9 +556,6 @@ int main()
 {
     IgniteConfiguration cfg;
 
-    cfg.jvmInitMem = 512;
-    cfg.jvmMaxMem = 1024;
-
     cfg.springCfgPath = "platforms/cpp/examples/odbc-example/config/example-odbc.xml";
 
     try
@@ -632,6 +629,8 @@ int main()
     catch (IgniteError& err)
     {
         std::cout << "An error occurred: " << err.GetText() << std::endl;
+
+        return err.GetCode();
     }
 
     std::cout << std::endl;

http://git-wip-us.apache.org/repos/asf/ignite/blob/7ffe15ee/modules/platforms/cpp/examples/put-get-example/src/put_get_example.cpp
----------------------------------------------------------------------
diff --git a/modules/platforms/cpp/examples/put-get-example/src/put_get_example.cpp b/modules/platforms/cpp/examples/put-get-example/src/put_get_example.cpp
index d8a401e..bc75954 100644
--- a/modules/platforms/cpp/examples/put-get-example/src/put_get_example.cpp
+++ b/modules/platforms/cpp/examples/put-get-example/src/put_get_example.cpp
@@ -85,9 +85,6 @@ int main()
 {
     IgniteConfiguration cfg;
 
-    cfg.jvmInitMem = 512;
-    cfg.jvmMaxMem = 512;
-
     cfg.springCfgPath = "platforms/cpp/examples/put-get-example/config/example-cache.xml";
 
     try
@@ -114,6 +111,8 @@ int main()
     catch (IgniteError& err)
     {
         std::cout << "An error occurred: " << err.GetText() << std::endl;
+
+        return err.GetCode();
     }
 
     std::cout << std::endl;

http://git-wip-us.apache.org/repos/asf/ignite/blob/7ffe15ee/modules/platforms/cpp/examples/query-example/src/query_example.cpp
----------------------------------------------------------------------
diff --git a/modules/platforms/cpp/examples/query-example/src/query_example.cpp b/modules/platforms/cpp/examples/query-example/src/query_example.cpp
index db7437e..bc4417a 100644
--- a/modules/platforms/cpp/examples/query-example/src/query_example.cpp
+++ b/modules/platforms/cpp/examples/query-example/src/query_example.cpp
@@ -393,9 +393,6 @@ int main()
 {
     IgniteConfiguration cfg;
 
-    cfg.jvmInitMem = 512;
-    cfg.jvmMaxMem = 512;
-
     cfg.springCfgPath = "platforms/cpp/examples/query-example/config/query-example.xml";
 
     try
@@ -447,6 +444,8 @@ int main()
     catch (IgniteError& err)
     {
         std::cout << "An error occurred: " << err.GetText() << std::endl;
+
+        return err.GetCode();
     }
 
     std::cout << std::endl;


Mime
View raw message