Skip to content

Commit

Permalink
redis#437 JedisPoolTest compilation issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
giridharkannan committed Jul 22, 2013
1 parent 338d11e commit 3435cfd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions dump.rdb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REDIS0006�ܳC�Z��V
10 changes: 9 additions & 1 deletion src/main/java/redis/clients/jedis/JedisPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,22 @@ public JedisPool(final Config poolConfig, final String host, int port, int timeo
super(poolConfig, new JedisFactory(host, port, timeout, password, database));
}

public void returnResource(final Jedis resource) {
public void returnBrokenResource(final BinaryJedis resource) {
returnBrokenResourceObject(resource);
}

public void returnResource(final BinaryJedis resource) {
if(resource.isConnected()) {
returnResourceObject(resource);
} else {
returnBrokenResourceObject(resource);
}
}

@Override
public void returnResource(final Jedis resource) {
returnResource((BinaryJedis)resource);
}

/**
* PoolableObjectFactory custom impl.
Expand Down

0 comments on commit 3435cfd

Please sign in to comment.