Skip to content

Commit

Permalink
Move new map op to end of enum to avoid breaking type stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Oct 17, 2023
1 parent 023e657 commit 67819ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions aerospike-stubs/aerospike.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ OP_MAP_REMOVE_BY_VALUE_RANK_RANGE_REL: Literal[1128]
OP_MAP_REMOVE_BY_VALUE_REL_INDEX_RANGE: Literal[1138]
OP_MAP_REMOVE_BY_VALUE_REL_RANK_RANGE: Literal[1139]
OP_MAP_REMOVE_BY_VALUE_REL_RANK_RANGE_TO_END: Literal[1133]
OP_MAP_CREATE: Literal[1144]
OP_MAP_SET_POLICY: Literal[1101]
OP_MAP_SIZE: Literal[1106]
POLICY_COMMIT_LEVEL_ALL: Literal[0]
Expand Down
4 changes: 2 additions & 2 deletions src/include/policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ enum Aerospike_list_operations {

enum Aerospike_map_operations {
OP_MAP_SET_POLICY = 1101,
OP_MAP_CREATE,
OP_MAP_PUT,
OP_MAP_PUT_ITEMS,
OP_MAP_INCREMENT,
Expand Down Expand Up @@ -137,7 +136,8 @@ enum Aerospike_map_operations {
OP_MAP_GET_BY_KEY_REL_INDEX_RANGE,
OP_MAP_GET_BY_VALUE_RANK_RANGE_REL_TO_END,
OP_MAP_GET_BY_INDEX_RANGE_TO_END,
OP_MAP_GET_BY_RANK_RANGE_TO_END
OP_MAP_GET_BY_RANK_RANGE_TO_END,
OP_MAP_CREATE
};

enum aerospike_bitwise_operations {
Expand Down

0 comments on commit 67819ad

Please sign in to comment.