From 736f2f1c69f538fffcab5e4b36ecc40de3b270b6 Mon Sep 17 00:00:00 2001 From: Michael Nitschinger <michael@nitschinger.at> Date: Mon, 4 Jul 2016 08:21:19 +0200 Subject: [PATCH] [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. --- .../java/com/yahoo/ycsb/db/couchbase2/Couchbase2Client.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchbase2/src/main/java/com/yahoo/ycsb/db/couchbase2/Couchbase2Client.java b/couchbase2/src/main/java/com/yahoo/ycsb/db/couchbase2/Couchbase2Client.java index 78334667..73e44a04 100644 --- a/couchbase2/src/main/java/com/yahoo/ycsb/db/couchbase2/Couchbase2Client.java +++ b/couchbase2/src/main/java/com/yahoo/ycsb/db/couchbase2/Couchbase2Client.java @@ -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(); -- GitLab