Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

NCBC-134: Failover on bootstrap node never recovers

  • Loading branch information...
commit a6485fdcd2d6fa8083656d8839c934d53c5ecff8 1 parent 6590b26
@johnzablocki johnzablocki authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Enyim.Caching/Memcached/Locators/VBucketNodeLocator.cs
View
2  Enyim.Caching/Memcached/Locators/VBucketNodeLocator.cs
@@ -76,7 +76,7 @@ void IMemcachedNodeLocator.Initialize(IList<IMemcachedNode> nodes)
IMemcachedNode IMemcachedNodeLocator.Locate(string key)
{
var bucket = this.GetVBucket(key);
-
+ if (bucket.Master == -1) return null; //situation during a failover, before a rebalance
return this.nodes[bucket.Master];
}
Please sign in to comment.
Something went wrong with that request. Please try again.