diff options
author | dormando <dormando@rydia.net> | 2020-03-06 00:35:02 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2020-03-06 00:37:52 -0800 |
commit | a71af5d1f319a01aae12716372e6fff82800e9c1 (patch) | |
tree | 86194e0804e8625212f0459f91b27d871eece178 /memcached.h | |
parent | 99dfb1ead68f4d78f0df21aba78a9c456b2649f4 (diff) | |
download | memcached-a71af5d1f319a01aae12716372e6fff82800e9c1.tar.gz |
meta: arithmetic command for incr/decr
see doc/protocol.txt. needed slightly different code as we have to
generate the response line after the main operation completes.
Diffstat (limited to 'memcached.h')
-rw-r--r-- | memcached.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/memcached.h b/memcached.h index 16f3cba..75d9724 100644 --- a/memcached.h +++ b/memcached.h @@ -778,7 +778,8 @@ void do_accept_new_conns(const bool do_accept); enum delta_result_type do_add_delta(conn *c, const char *key, const size_t nkey, const bool incr, const int64_t delta, char *buf, - uint64_t *cas, const uint32_t hv); + uint64_t *cas, const uint32_t hv, + item **it_ret); enum store_item_type do_store_item(item *item, int comm, conn* c, const uint32_t hv); conn *conn_new(const int sfd, const enum conn_states init_state, const int event_flags, const int read_buffer_size, enum network_transport transport, struct event_base *base, void *ssl); |