Merge pull request #664 from paderlol/develop
Fix update instance info NPE #663
This commit is contained in:
commit
ad4f63ebe4
@ -315,7 +315,7 @@ public class DomainsManager {
|
||||
try {
|
||||
|
||||
if (!dom.getEnableClientBeat()) {
|
||||
getDom2LockMap().get(domName).lock();
|
||||
getDom2LockMap().get(UtilsAndCommons.assembleFullServiceName(namespaceId, domName)).lock();
|
||||
}
|
||||
|
||||
Datum datum1 = RaftCore.getDatum(UtilsAndCommons.getIPListStoreKey(dom));
|
||||
@ -389,7 +389,7 @@ public class DomainsManager {
|
||||
RaftCore.onPublish(datum, peer, increaseTerm);
|
||||
} finally {
|
||||
if (!dom.getEnableClientBeat()) {
|
||||
getDom2LockMap().get(domName).unlock();
|
||||
getDom2LockMap().get(UtilsAndCommons.assembleFullServiceName(namespaceId, domName)).unlock();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user