Skip to content

Commit

Permalink
CLIENT-2973: Make scans work in a mixed cluster of 5.7 and 6.4 nodes (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonklaus authored Jun 5, 2024
1 parent 7c749ec commit 3ff8904
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions AerospikeClient/Command/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 3ff8904

Please sign in to comment.