mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-11-06 11:11:24 +01:00
ONOS-6906
Dynamic Config: Update events are missed Change-Id: Ibe8ac3936e1a0d868ac4952fecb0a39061ca343d
This commit is contained in:
parent
1e534c3683
commit
c70b7e533c
@ -197,9 +197,11 @@ public class DistributedDynamicConfigStore
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Boolean addKey(String path, DataNode.Type type) {
|
private Boolean addKey(String path, DataNode.Type type) {
|
||||||
Boolean stat = false;
|
if (completeVersioned(keystore.get(DocumentPath.from(path))) != null) {
|
||||||
CompletableFuture<Boolean> ret = keystore.create(DocumentPath.from(path), type);
|
completeVersioned(keystore.set(DocumentPath.from(path), type));
|
||||||
return complete(ret);
|
return true;
|
||||||
|
}
|
||||||
|
return complete(keystore.create(DocumentPath.from(path), type));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user