X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FReadOnlyShardDataTreeTransaction.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FReadOnlyShardDataTreeTransaction.java;h=59265682ad3d189d12b741acd106c49c8efa79ac;hp=0000000000000000000000000000000000000000;hb=56c1339ee7dbd85bc567fc44f21ecfd322c9e803;hpb=81d25b3c5f4a040b5f11475752a26712b46f5c0b diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ReadOnlyShardDataTreeTransaction.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ReadOnlyShardDataTreeTransaction.java new file mode 100644 index 0000000000..59265682ad --- /dev/null +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ReadOnlyShardDataTreeTransaction.java @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ +package org.opendaylight.controller.cluster.datastore; + +import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeSnapshot; + +final class ReadOnlyShardDataTreeTransaction extends AbstractShardDataTreeTransaction { + ReadOnlyShardDataTreeTransaction(final String id, final DataTreeSnapshot snapshot) { + super(id, snapshot); + } + + @Override + void abort() { + close(); + } +}