Fixed a bug in ReplicationHubFindByName

This commit is contained in:
leventov
2015-01-19 18:40:15 +07:00
parent 748022eefc
commit 3c86eda26c
@@ -71,6 +71,7 @@ class ReplicationHubFindByName<K> implements FindByName {
int withChannelId = nextFreeChannel.incrementAndGet();
try (MapKeyContext<MapInstanceBuilder> c = map.context(config.name)) {
c.updateLock().lock();
MapInstanceBuilder value =
config.replicatedViaChannel(replicationHub.createChannel(withChannelId));
boolean added = !c.containsKey();