From c489326d12862ca2bafd9ffd7e7568f08c451e05 Mon Sep 17 00:00:00 2001 From: Brian Nichols Date: Fri, 19 Jan 2024 11:44:47 -0500 Subject: [PATCH] Update as_operations_add_incr()/as_operations_add_incr_double() docs to mention that the record/bin will be created by default when the record/bin does not already exist. --- src/include/aerospike/as_operations.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/include/aerospike/as_operations.h b/src/include/aerospike/as_operations.h index beaf5723f..4082baca0 100644 --- a/src/include/aerospike/as_operations.h +++ b/src/include/aerospike/as_operations.h @@ -578,7 +578,8 @@ AS_EXTERN bool as_operations_add_read_all(as_operations* ops); /** - * Add a `AS_OPERATOR_INCR` bin operation with (required) int64_t value. + * Add a `AS_OPERATOR_INCR` bin operation with int64_t value. If the record or bin does not exist, + * the record/bin will be created by default with the value to be added. * * @param ops The `as_operations` to append the operation to. * @param name The name of the bin to perform the operation on. @@ -593,7 +594,8 @@ AS_EXTERN bool as_operations_add_incr(as_operations* ops, const char* name, int64_t value); /** - * Add a `AS_OPERATOR_INCR` bin operation with double value. + * Add a `AS_OPERATOR_INCR` bin operation with double value. If the record or bin does not exist, + * the record/bin will be created by default with the value to be added. * * @param ops The `as_operations` to append the operation to. * @param name The name of the bin to perform the operation on.