commit | c3445a1a179a90ffe241b46989d7105b4ba5ba50 | [log] [tgz] |
---|---|---|
author | Gaurav Agrawal <gaurav.agrawal@huawei.com> | Thu Nov 16 20:37:58 2017 +0530 |
committer | Thomas Vachuska <tom@opennetworking.org> | Thu Nov 16 22:43:31 2017 +0000 |
tree | 92e8db364091a93b9e241cc4d1bf7d12b8473e23 | |
parent | 86ac40b1819cfa6f31d4398066beb725d618f2c8 [diff] |
Register BigDecimal to kryo fixing DCStore issue. Change-Id: Ia6ee2bbcc813223c85b8c95885542044269a081b
diff --git a/apps/config/src/main/java/org/onosproject/config/impl/DistributedDynamicConfigStore.java b/apps/config/src/main/java/org/onosproject/config/impl/DistributedDynamicConfigStore.java index 202f178..3923173 100644 --- a/apps/config/src/main/java/org/onosproject/config/impl/DistributedDynamicConfigStore.java +++ b/apps/config/src/main/java/org/onosproject/config/impl/DistributedDynamicConfigStore.java
@@ -57,6 +57,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.math.BigDecimal; import java.math.BigInteger; import java.util.LinkedHashMap; import java.util.Map; @@ -108,6 +109,7 @@ .register(ListKey.class) .register(KeyLeaf.class) .register(BigInteger.class) + .register(BigDecimal.class) .register(LinkedHashMap.class); keystore = storageService.<DataNode.Type>documentTreeBuilder() .withSerializer(Serializer.using(kryoBuilder.build()))