Skip to content

Commit b101e94

Browse files
committed
reverting set_doc experiment
1 parent c1ced23 commit b101e94

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/main/java/picoded/dstack/mongodb/MongoDB_DataObjectMap.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,13 @@ public void DataObjectRemoteDataMap_update(String _oid, Map<String, Object> full
268268
if (updateKeys.contains(key)) {
269269
// Handle NULL values unset
270270
if (value == null || value == ObjectToken.NULL) {
271+
// In theory this should have worked
271272
unset_doc.append(key, "");
272-
set_doc.append(key, null);
273-
setOnInsert_doc.append(key, null);
274-
continue;
273+
274+
// // But it didn't so i tried this instead
275+
// set_doc.append(key, null);
276+
// setOnInsert_doc.append(key, null);
277+
// continue;
275278
}
276279

277280
// Handle values update

0 commit comments

Comments
 (0)