commit | e636d76752d3da36006ee4ecca705c7fd54e0348 | [log] [tgz] |
---|---|---|
author | Jordan Halterman <jordan@opennetworking.org> | Thu Feb 15 18:09:38 2018 -0800 |
committer | Ray Milkey <ray@opennetworking.org> | Fri Feb 16 08:41:48 2018 -0800 |
tree | 8f807fab70681481acee3f8d1a50233166ed7773 | |
parent | 4a315165a7ed83954aa85f67596211f5d23845e3 [diff] |
Upgrade to Atomix 2.0.18 Change-Id: I433e8b85d5aad007531c24495dd8298aeef9f79e
diff --git a/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/StoragePartitionServer.java b/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/StoragePartitionServer.java index 29e3f15..ec620cd 100644 --- a/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/StoragePartitionServer.java +++ b/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/StoragePartitionServer.java
@@ -107,8 +107,8 @@ .withElectionThreshold(ELECTION_THRESHOLD) .withStorage(RaftStorage.newBuilder() .withPrefix(String.format("partition-%s", partition.getId())) - .withStorageLevel(StorageLevel.DISK) - .withFlushOnCommit() + .withStorageLevel(StorageLevel.MAPPED) + .withFlushOnCommit(false) .withSerializer(new AtomixSerializerAdapter(Serializer.using(StorageNamespaces.RAFT_STORAGE))) .withDirectory(dataFolder) .withMaxSegmentSize(MAX_SEGMENT_SIZE)