From 7fb938bee73458e35d500598502a6da8d9fb8d77 Mon Sep 17 00:00:00 2001 From: Ian Date: Mon, 7 Oct 2024 08:40:49 -0700 Subject: [PATCH] connection pool bug fix (#224) * connection pool bug fix * Automated updates: Format and/or coverage * Automated updates: Format and/or coverage * Automated updates: Format and/or coverage * Automated updates: Format and/or coverage --------- Co-authored-by: sys_vdms --- .github/coverage/cpp.develop.coverage_report.txt | 2 +- src/QueryHandlerNeo4j.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/coverage/cpp.develop.coverage_report.txt b/.github/coverage/cpp.develop.coverage_report.txt index b5d9c600..968491b2 100644 --- a/.github/coverage/cpp.develop.coverage_report.txt +++ b/.github/coverage/cpp.develop.coverage_report.txt @@ -24,7 +24,7 @@ src/PMGDQuery.cc 466 366 78% 89-92,94-96,12 src/PMGDQueryHandler.cc 645 535 82% 82-84,166-167,169-170,194-197,208-209,230,279,281,285,290,292,320-321,338,340,344,346,397-398,400,402-407,409,411,463-464,478-479,488,490,496,498,524-526,537,566,605,607,612-613,649,651-655,677-679,681-686,688,720,729-730,737,741-743,745,748,751,815,822,850,870-876,878-879,881,883,895-896,915-917,921-922,965,1012-1013,1015-1017,1038,1050,1052-1053 src/QueryHandlerBase.cc 32 6 18% 26-29,35-36,38,42-43,45,47-48,52,56-58,60-62,64-66,68-69,72-73 src/QueryHandlerExample.cc 33 18 54% 65-67,75-78,84-85,89-92,94-95 -src/QueryHandlerNeo4j.cc 139 0 0% 53,55-56,58,60-62,64-65,67,70-76,80-81,83-87,91,93,95-100,104-108,111-115,119-126,129-132,134-136,139-147,149-153,159,162,169,172-175,177-179,181,184-187,189-190,192,194,197,199,201-204,207-208,210,212-213,216,218,222-223,225,229,231-232,235,237-240,243-247,250-254,256-257,261-268,271-274,277 +src/QueryHandlerNeo4j.cc 139 0 0% 53,55-56,58,60-62,64-65,67,70-76,80-81,83-87,91,93,95-100,104-108,111-115,119-126,129-132,134-136,139-147,149-153,159,162,169,172-175,177-179,181,184-187,189-190,192,194,197,199,201-204,207-208,210,212-213,216,218,222-223,226,229,231-232,235,237-240,243-247,250-254,256-257,261-268,271-274,277 src/QueryHandlerPMGD.cc 344 226 65% 109-111,119-122,137-138,142-146,149-153,157-164,167-170,172-174,183-185,189-191,209-211,216-218,233-239,243-245,263,265-274,303-305,352-354,356-358,361-362,364-367,390-391,393-394,403,410-422,424-426,433-441,478,480,535-536,538-539 src/QueryMessage.cc 12 0 0% 37-39,42-43,45-46,48,51-54 src/RSCommand.cc 144 105 72% 65-67,73-74,98,100-101,103,110,131,134-138,141,172-174,176,178-181,188,262,285,287-289,291-297,301 diff --git a/src/QueryHandlerNeo4j.cc b/src/QueryHandlerNeo4j.cc index ee7f4465..02ce100f 100644 --- a/src/QueryHandlerNeo4j.cc +++ b/src/QueryHandlerNeo4j.cc @@ -221,9 +221,9 @@ void QueryHandlerNeo4j::process_query(protobufs::queryMessage &proto_query, // errors on response construction if (error == false) { neoconn_pool->commit_tx(tx); - } else { - neoconn_pool->put_conn(conn); } + + neoconn_pool->put_conn(conn); } int QueryHandlerNeo4j::parse_commands(