diff options
author | Fangrui Song <i@maskray.me> | 2018-03-13 20:10:34 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2018-03-14 12:47:05 -0700 |
commit | 8bdf0a3bb92046814aebf920eda823d1718ce2c7 (patch) | |
tree | 8cdb8f7b6806977175cf1bcfd56c9b3e06c6f094 | |
parent | 99b409af7830208aae3fadc92e2ee45b943f1ddc (diff) | |
download | memcached-8bdf0a3bb92046814aebf920eda823d1718ce2c7.tar.gz |
add_delta: use bool incr to be consistent with other functions
-rw-r--r-- | memcached.h | 2 | ||||
-rw-r--r-- | thread.c | 2 |
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); @@ -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; |