mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Fixed a bug in ReplicationHubFindByName
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user