Reduce SchemaContext updates on shutdown 00/21000/1
authorTom Pantelis <tpanteli@brocade.com>
Mon, 18 May 2015 00:33:53 +0000 (20:33 -0400)
committerMoiz Raja <moraja@cisco.com>
Fri, 22 May 2015 15:58:14 +0000 (15:58 +0000)
commit065804c514c4a8e0ee18b35e7676adbe655703fa
tree17956a74eb47f7c642b18f9ad03a7307ec004a3d
parentf072dac62db940562d03b5829fa1f4fd3ef74c54
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>
(cherry picked from commit bc312b3f54c8c089fdc2f2f2b8b8bb6903cca038)
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/GlobalBundleScanningSchemaServiceImpl.java