Reduce SchemaContext updates on shutdown 31/20931/2
authorTom Pantelis <tpanteli@brocade.com>
Mon, 18 May 2015 00:33:53 +0000 (20:33 -0400)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 22 May 2015 11:32:04 +0000 (11:32 +0000)
commitbc312b3f54c8c089fdc2f2f2b8b8bb6903cca038
treed2a175290c09de2ce884dcc992ddaf6f64654e46
parentf97cede6bf2e8555a462a5f9476bd38d50abf336
Reduce SchemaContext updates on shutdown

The GlobalBundleScanningSchemaServiceImpl sends out a ton (hundreds) of
SchemaContext updates on shutdown. This because the removedBundle method
calls tryToUpdateSchemaContext even for bundles that weren't tracked, ie
bundles w/o yang URLs. So I added a check`for # URLs > 0.

Change-Id: I203047f04ba5761c1927102b3cb0f2e309b6bf77
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/GlobalBundleScanningSchemaServiceImpl.java