You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2019/04/30 19:05:49 UTC
[tinkerpop] branch master updated: flipped comparison sign that
prevented re-population of connection pool by always early exiting
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
The following commit(s) were added to refs/heads/master by this push:
new ad7c5ae flipped comparison sign that prevented re-population of connection pool by always early exiting
new 0f46845 Merge pull request #1096 from bpeav/TINKERPOP-2090
ad7c5ae is described below
commit ad7c5ae74b05caa4979c1f73539434e282734e05
Author: Brett Peavler <br...@bradycorp.com>
AuthorDate: Thu Apr 11 15:53:14 2019 -0500
flipped comparison sign that prevented re-population of connection pool by always early exiting
---
gremlin-dotnet/src/Gremlin.Net/Driver/ConnectionPool.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gremlin-dotnet/src/Gremlin.Net/Driver/ConnectionPool.cs b/gremlin-dotnet/src/Gremlin.Net/Driver/ConnectionPool.cs
index 09e20a1..cd35653 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Driver/ConnectionPool.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Driver/ConnectionPool.cs
@@ -62,7 +62,7 @@ namespace Gremlin.Net.Driver
private async Task EnsurePoolIsPopulatedAsync()
{
// The pool could have been (partially) empty because of connection problems. So, we need to populate it again.
- if (_poolSize >= NrConnections) return;
+ if (_poolSize <= NrConnections) return;
var poolState = Interlocked.CompareExchange(ref _poolState, PoolPopulationInProgress, PoolIdle);
if (poolState == PoolPopulationInProgress) return;
try