Bump upstreams
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / OSGiDistributedDataStore.java
index d365097f3bb8c0ca44f9ce418e81a0c87fb728e9..3e2db7dfed466b7681ef2a1a32f16027436b596b 100644 (file)
@@ -150,7 +150,7 @@ public final class OSGiDistributedDataStore {
         final var introspector = introspectorFactory.newInstance(datastoreType, properties);
         final var datastore = DistributedDataStoreFactory.createInstance(actorSystemProvider,
             introspector.getContext(), introspector, snapshotRestore, config);
-        datastore.setCloseable(schemaService.registerSchemaContextListener(datastore));
+        datastore.setCloseable(schemaService.registerSchemaContextListener(datastore::onModelContextUpdated));
         final var state = new DatastoreState(introspector, datastoreType, datastore, serviceType);
 
         Futures.addCallback(datastore.initialSettleFuture(), state,