summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2018-03-13 20:10:34 -0700
committerdormando <dormando@rydia.net>2018-03-14 12:47:05 -0700
commit8bdf0a3bb92046814aebf920eda823d1718ce2c7 (patch)
tree8cdb8f7b6806977175cf1bcfd56c9b3e06c6f094
parent99b409af7830208aae3fadc92e2ee45b943f1ddc (diff)
downloadmemcached-8bdf0a3bb92046814aebf920eda823d1718ce2c7.tar.gz
add_delta: use bool incr to be consistent with other functions
-rw-r--r--memcached.h2
-rw-r--r--thread.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/memcached.h b/memcached.h
index 22893f5..9cab089 100644
--- a/memcached.h
+++ b/memcached.h
@@ -713,7 +713,7 @@ void sidethread_conn_close(conn *c);
/* Lock wrappers for cache functions that are called from main loop. */
enum delta_result_type add_delta(conn *c, const char *key,
- const size_t nkey, const int incr,
+ const size_t nkey, bool incr,
const int64_t delta, char *buf,
uint64_t *cas);
void accept_new_conns(const bool do_accept);
diff --git a/thread.c b/thread.c
index d17a387..ee18428 100644
--- a/thread.c
+++ b/thread.c
@@ -625,7 +625,7 @@ void item_unlink(item *item) {
* Does arithmetic on a numeric item value.
*/
enum delta_result_type add_delta(conn *c, const char *key,
- const size_t nkey, int incr,
+ const size_t nkey, bool incr,
const int64_t delta, char *buf,
uint64_t *cas) {
enum delta_result_type ret;