Optimize getAllShardNames() 88/14488/1
authorRobert Varga <rovarga@cisco.com>
Mon, 26 Jan 2015 13:24:24 +0000 (14:24 +0100)
committerRobert Varga <rovarga@cisco.com>
Mon, 26 Jan 2015 14:38:17 +0000 (15:38 +0100)
commitb5310f51df01f07cac372a97f66e0ef0fefa7264
tree34640e61f9e0ec674c25ab50ed84596146ed766c
parentee1a4976ce56697338e160e237c2e468d37f7ce2
Optimize getAllShardNames()

Instead of iterating through all shards, cache the result of
getAllShardNames().

Change-Id: Ia36e2a7cbae39e7e6862e57d93532b7b59c7863b
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ConfigurationImpl.java