Solve the bug: the persistent instance becomes a temporary instance after the console operation goes offline (#8517)
This commit is contained in:
parent
b8b34b81cc
commit
bf1c06f82b
@ -81,8 +81,9 @@ public class ServiceStorage {
|
|||||||
if (!ServiceManager.getInstance().containSingleton(service)) {
|
if (!ServiceManager.getInstance().containSingleton(service)) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
result.setHosts(getAllInstancesFromIndex(service));
|
Service singleton = ServiceManager.getInstance().getSingleton(service);
|
||||||
serviceDataIndexes.put(service, result);
|
result.setHosts(getAllInstancesFromIndex(singleton));
|
||||||
|
serviceDataIndexes.put(singleton, result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user