Prevent partial init in DatastoreSnapshotRestore 81/29881/1
authorGary Wu <gary.wu1@huawei.com>
Wed, 18 Nov 2015 19:23:06 +0000 (11:23 -0800)
committerGary Wu <gary.wu1@huawei.com>
Wed, 18 Nov 2015 19:23:06 +0000 (11:23 -0800)
commitfd6fce5918121f6c802acdbe67ba9ac006049b94
tree7e051baf019b3bbb81e115c2be2c49702985f223
parent769ef0f950f2ed6cfc14d274e6a8edc583a36a96
Prevent partial init in DatastoreSnapshotRestore

The config subsystem should only push one config
at a time, but in case it doesn't, synchronize
DatastoreSnapshotRestore.initialize() to prevent
partial initialization in the event of concurrent
calls to getAndRemove().

Change-Id: Ie614e8b2045d86ea46b55609bf5cde9e6597b086
Signed-off-by: Gary Wu <gary.wu1@huawei.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DatastoreSnapshotRestore.java