BUG-8371: Respond to CreateLocalHistoryRequest after replication
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / sharding / PrefixedShardConfigWriter.java
index b0507f6383da8e24b7c936432fa06f588a6e414e..de73869d8736f975ea125c8bb5bd21859ce7f376 100644 (file)
@@ -117,6 +117,8 @@ class PrefixedShardConfigWriter {
         } catch (final ReadFailedException e) {
             LOG.error("Presence check of default shard in configuration failed.", e);
             return false;
+        } finally {
+            snapshot.abort();
         }
     }