From 67819ad055dff3bc985f61d6fb2a41a18be7e21a Mon Sep 17 00:00:00 2001 From: Julian Nguyen <109386615+juliannguyen4@users.noreply.github.com> Date: Thu, 12 Oct 2023 14:26:32 -0700 Subject: [PATCH] Move new map op to end of enum to avoid breaking type stubs --- aerospike-stubs/aerospike.pyi | 1 + src/include/policy.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/aerospike-stubs/aerospike.pyi b/aerospike-stubs/aerospike.pyi index c661d0538..b5f066213 100644 --- a/aerospike-stubs/aerospike.pyi +++ b/aerospike-stubs/aerospike.pyi @@ -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] diff --git a/src/include/policy.h b/src/include/policy.h index f48fefc11..25548c02d 100644 --- a/src/include/policy.h +++ b/src/include/policy.h @@ -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, @@ -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 {