Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions client/src/com/aerospike/client/exp/Exp.java
Original file line number Diff line number Diff line change
Expand Up @@ -1723,9 +1723,13 @@ private ListVal(List<?> list) {
public void pack(Packer packer) {
// List values need an extra array and QUOTED in order to distinguish
// between a multiple argument array call and a local list.
// Value literals must be in canonical form (AER-6930): unordered maps
// at any depth are packed with keys sorted in server msgpack order.
packer.sortMaps(true);
packer.packArrayBegin(2);
packer.packInt(QUOTED);
packer.packList(list);
packer.sortMaps(false);
}
}

Expand All @@ -1738,7 +1742,11 @@ private MapVal(Map<?,?> map) {

@Override
public void pack(Packer packer) {
// Value literals must be in canonical form (AER-6930): unordered maps
// at any depth are packed with keys sorted in server msgpack order.
packer.sortMaps(true);
packer.packMap(map);
packer.sortMaps(false);
}
}

Expand Down
Loading
Loading