Skip to content

Commit

Permalink
When FailureMode is retry, queue even when inactive.
Browse files Browse the repository at this point in the history
This is *most* of the implementation of FailureMode.Retry.
  • Loading branch information
dustin committed Feb 11, 2009
1 parent cf4b55f commit 4caa1df
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 @@ -467,7 +467,7 @@ NodeLocator getLocator() {
public void addOperation(final String key, final Operation o) {
MemcachedNode placeIn=null;
MemcachedNode primary = locator.getPrimary(key);
if(primary.isActive()) {
if(primary.isActive() || failureMode == FailureMode.Retry) {
placeIn=primary;
} else {
// Look for another node in sequence that is ready.
Expand Down

0 comments on commit 4caa1df

Please sign in to comment.