Skip to content
Snippets Groups Projects
Commit 736f2f1c authored by Michael Nitschinger's avatar Michael Nitschinger
Browse files

[couchbase2] fix field returning on decode.

this properly fixes #786 which has been reverted since it has some
side effects on other workloads and causes regressions.
parent dd043f82
No related branches found
No related tags found
No related merge requests found
......@@ -856,7 +856,7 @@ public class Couchbase2Client extends DB {
for (Iterator<Map.Entry<String, JsonNode>> jsonFields = json.fields(); jsonFields.hasNext();) {
Map.Entry<String, JsonNode> jsonField = jsonFields.next();
String name = jsonField.getKey();
if (checkFields && fields.contains(name)) {
if (checkFields && !fields.contains(name)) {
continue;
}
JsonNode jsonValue = jsonField.getValue();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment