From 3ff890475e5241c4ec994b6f9316c3e202db5797 Mon Sep 17 00:00:00 2001 From: Shannon Klaus Date: Wed, 5 Jun 2024 13:27:59 -0600 Subject: [PATCH] CLIENT-2973: Make scans work in a mixed cluster of 5.7 and 6.4 nodes (#126) --- AerospikeClient/Command/Command.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/AerospikeClient/Command/Command.cs b/AerospikeClient/Command/Command.cs index 419d4ab0..dd9c0f2e 100644 --- a/AerospikeClient/Command/Command.cs +++ b/AerospikeClient/Command/Command.cs @@ -1304,9 +1304,8 @@ NodePartitions nodePartitions } // Clusters that support partition queries also support not sending partition done messages. - int infoAttr = cluster.hasPartitionQuery ? Command.INFO3_PARTITION_DONE : 0; int operationCount = (binNames == null) ? 0 : binNames.Length; - WriteHeaderRead(policy, totalTimeout, readAttr, 0, infoAttr, fieldCount, operationCount); + WriteHeaderRead(policy, totalTimeout, readAttr, 0, Command.INFO3_PARTITION_DONE, fieldCount, operationCount); if (ns != null) { @@ -1593,7 +1592,7 @@ NodePartitions nodePartitions writeAttr |= Command.INFO2_RELAX_AP_LONG_QUERY; } - int infoAttr = isNew ? Command.INFO3_PARTITION_DONE : 0; + int infoAttr = (isNew || statement.filter == null) ? Command.INFO3_PARTITION_DONE : 0; WriteHeaderRead(policy, totalTimeout, readAttr, writeAttr, infoAttr, fieldCount, operationCount); }