Changeset 636
- Timestamp:
- 11/15/07 17:09:03 (1 year ago)
- Files:
-
- trunk/server/items.c (modified) (1 diff)
- trunk/server/memcached.c (modified) (1 diff)
- trunk/server/memcached.h (modified) (1 diff)
- trunk/server/t/cas.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/server/items.c
r635 r636 43 43 /* Get the next CAS id for a new item. */ 44 44 uint64_t get_cas_id() { 45 static uint64_t cas_id; 46 if(cas_id >= MAX_CAS_ID) { 47 cas_id = 0; 48 } 45 static uint64_t cas_id = 0; 49 46 return ++cas_id; 50 47 } trunk/server/memcached.c
r635 r636 705 705 out_string(c, "EXISTS"); 706 706 else if(ret == 3) 707 out_string(c, "NOT FOUND");707 out_string(c, "NOT_FOUND"); 708 708 else 709 709 out_string(c, "NOT_STORED"); trunk/server/memcached.h
r635 r636 32 32 #define IOV_LIST_HIGHWAT 600 33 33 #define MSG_LIST_HIGHWAT 100 34 35 #define MAX_CAS_ID 0x7ffffffffffffff036 34 37 35 /* Get a consistent bool type */ trunk/server/t/cas.t
r617 r636 42 42 # cas missing 43 43 print $sock "cas foo 0 0 6 $result[0]\r\nbarva2\r\n"; 44 is(scalar <$sock>, "NOT FOUND\r\n", "cas failed, foo does not exist");44 is(scalar <$sock>, "NOT_FOUND\r\n", "cas failed, foo does not exist"); 45 45
