BUG-8219: optimize empty CompositeDataTreeCohort case 21/55821/3
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 21 Apr 2017 16:04:23 +0000 (18:04 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 21 Apr 2017 16:08:23 +0000 (18:08 +0200)
commit8edc82760c423e16da02213251b5231de59e9dc8
tree655411c6e98414db9c35a66dad4796a5151d519c
parent1374a9e6f072862b5144b7af7a5cfd078f42e31a
BUG-8219: optimize empty CompositeDataTreeCohort case

The common case is when we do not have any user cohorts, in which
case these is nothing we need to do. Address the FIXME by adding
shortcuts which transition state directly without burdening the
global execution context.

Change-Id: I38e163a879949c3755322ed371db3bff5d28142f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/CompositeDataTreeCohort.java