Skip to content

Commit

Permalink
Make queueReconnect protected so subclasses can request reconnects.
Browse files Browse the repository at this point in the history
In fixing JCBC-53 on the Couchbase Java client, a need to queue
reconnections in some cluster configuration updates was found to be
required.  This change allows that.

Change-Id: I25ce3945b4e5e6527dd680031237be22faed69ee
Reviewed-on: http://review.couchbase.org/16335
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
  • Loading branch information
ingenthr authored and Michael Wiederhold committed May 24, 2012
1 parent ac6ccd8 commit 87158ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/spy/memcached/MemcachedConnection.java
Expand Up @@ -501,7 +501,7 @@ static String dbgBuffer(ByteBuffer b, int size) {
return sb.toString(); return sb.toString();
} }


private void queueReconnect(MemcachedNode qa) { protected void queueReconnect(MemcachedNode qa) {
if (!shutDown) { if (!shutDown) {
getLogger().warn("Closing, and reopening %s, attempt %d.", qa, getLogger().warn("Closing, and reopening %s, attempt %d.", qa,
qa.getReconnectCount()); qa.getReconnectCount());
Expand Down

0 comments on commit 87158ef

Please sign in to comment.