Skip to content

Commit

Permalink
[couchbase2] fix field returning on decode.
Browse files Browse the repository at this point in the history
this properly fixes #786 which has been reverted since it has some
side effects on other workloads and causes regressions.
  • Loading branch information
daschl committed Jul 4, 2016
1 parent dd043f8 commit 736f2f1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -856,7 +856,7 @@ private void decode(final String source, final Set<String> fields,
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();
Expand Down

0 comments on commit 736f2f1

Please sign in to comment.