jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chet...@apache.org
Subject svn commit: r1450729 - /jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/prototype/MemoryDocumentStore.java
Date Wed, 27 Feb 2013 10:54:48 GMT
Author: chetanm
Date: Wed Feb 27 10:54:48 2013
New Revision: 1450729

URL: http://svn.apache.org/r1450729
Log:
OAK-619 - Lock-free MongoMK implementation

Minor fixes around null properties.

Modified:
    jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/prototype/MemoryDocumentStore.java

Modified: jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/prototype/MemoryDocumentStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/prototype/MemoryDocumentStore.java?rev=1450729&r1=1450728&r2=1450729&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/prototype/MemoryDocumentStore.java
(original)
+++ jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/prototype/MemoryDocumentStore.java
Wed Feb 27 10:54:48 2013
@@ -150,25 +150,25 @@ public class MemoryDocumentStore impleme
             case ADD_MAP_ENTRY: {
                 Object old = target.get(kv[0]);
                 @SuppressWarnings("unchecked")
-                Map<String, String> m = (Map<String, String>) old;
+                Map<String, Object> m = (Map<String, Object>) old;
                 if (m == null) {
                     m = Utils.newMap();
                     target.put(kv[0], m);
                 }
-                m.put(kv[1], op.value.toString());
+                m.put(kv[1], op.value);
                 break;
             }
             case REMOVE_MAP_ENTRY: {
                 Object old = target.get(kv[0]);
                 @SuppressWarnings("unchecked")
-                Map<String, String> m = (Map<String, String>) old;
+                Map<String, Object> m = (Map<String, Object>) old;
                 if (m != null) {
                     m.remove(kv[1]);
                 }
                 break;
             }
             case SET_MAP_ENTRY: {
-                Map<String, String> m = Utils.newMap();
+                Map<String, Object> m = Utils.newMap();
                 target.put(k, m);
                 break;
             }



Mime
View raw message