summaryrefslogtreecommitdiff
path: root/items.h
diff options
context:
space:
mode:
authorDustin Sallings <dustin@spy.net>2009-02-11 18:03:14 -0800
committerDustin Sallings <dustin@spy.net>2009-02-11 18:03:14 -0800
commitbad6c614e58639d0685706f17dc9562323c30f39 (patch)
tree72c54982d8cbc049f0b8353289255842acedc3f3 /items.h
parented69f308cbf9b562d389c2dfe122551ae4e9cfa2 (diff)
downloadmemcached-bad6c614e58639d0685706f17dc9562323c30f39.tar.gz
Update CAS on non-replace incr/decr.
This fixes a problem reported as bug 15 where incr and decr do not change CAS values when they aren't completely replacing the item (which is the typical case). http://code.google.com/p/memcached/issues/detail?id=15
Diffstat (limited to 'items.h')
-rw-r--r--items.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/items.h b/items.h
index 660cc8a..0c680a2 100644
--- a/items.h
+++ b/items.h
@@ -1,5 +1,7 @@
/* See items.c */
void item_init(void);
+uint64_t get_cas_id(void);
+
/*@null@*/
item *do_item_alloc(char *key, const size_t nkey, const int flags, const rel_time_t exptime, const int nbytes);
void item_free(item *it);