Commit Graph

5514 Commits

Author SHA1 Message Date
e1f93d4b2c use integer types from stdint.h to be more verbose on the size in bytes of encoded elements. update list length to use 2 bytes instead of 1. 2010-06-01 18:55:37 +02:00
ffc1585267 added stress test for heavy i/o in ziplists 2010-06-01 18:51:23 +02:00
b84186ff2d fix signedness errors in ziplist testing code 2010-06-01 17:57:09 +02:00
612e4de8ce minor code movements and free object pull restored to 1 million 2010-06-01 17:08:43 +02:00
356f923913 TODO updated with syslog plans for 2.2 2010-06-01 15:01:16 +02:00
dbc289aed1 Debug message was printing stuff that are sometimes not initialized/valid 2010-06-01 14:22:21 +02:00
4e538759c4 Merge branch 'smallkeys' of github.com:antirez/redis into smallkeys 2010-06-01 14:18:38 +02:00
a4798f733d fixed a few comments 2010-06-01 14:18:30 +02:00
e4ed181d40 fixed bugs introduced in the rewrite of the new VM engine 2010-06-01 14:15:46 +02:00
6ddc908ab6 support rewriting the AOF with dual list encoding 2010-05-31 23:49:16 +02:00
9eaef89fbc small refactor of fwrite* commands for AOF rewrite to allow writing a bulk long long 2010-05-31 23:41:04 +02:00
dc845730a9 use list wrapper functions in computing the dataset digest 2010-05-31 23:35:51 +02:00
d71b98650f ziplistNext should work as expected when called with a pointer to ZIP_END 2010-05-31 23:35:21 +02:00
a03611e133 update SORT to work with the dual list encoding 2010-05-31 23:22:00 +02:00
1cd92e7f04 function to create a new ziplist encoded list 2010-05-31 23:10:05 +02:00
7dd8e7cfdf fixed missing incrRefCount 2010-05-31 22:56:53 +02:00
23f964946b support rdb saving/loading with dual list encoding 2010-05-31 22:26:32 +02:00
b6eb970394 fixed signedness and disambiguate variable names 2010-05-31 22:26:32 +02:00
2796f6da7b added rdb save function to directly save long long values 2010-05-31 22:26:25 +02:00
0f62e1775d update RPOPLPUSH to support dual encoding 2010-05-31 20:47:39 +02:00
be02a7c0d6 update list iteration semantic to work as expected (i.e. "while(lNext(..))") 2010-05-31 20:25:31 +02:00
6a8e35ad92 ziplistDelete no longer needs a direction now ziplistPrev is fixed 2010-05-31 20:18:35 +02:00
8632fb3040 ziplistPrev should return the tail when the argument is ZIP_END 2010-05-31 20:17:21 +02:00
560db612e1 first step of VM rewrite. blocking VM tests passing, more work needed in the async side 2010-05-31 20:10:18 +02:00
752203d86d Merge branch 'no-appendfsync-on-rewrite' 2010-05-31 10:08:14 +02:00
3fbf9001ce fix LREM to remove *all* occurances when a zero argument is given 2010-05-30 03:25:14 +02:00
bd8db0ada8 fixed LINDEX to always return bulk response 2010-05-30 03:25:04 +02:00
dbaa41c618 the tail offset must be an integer pointer to hold a 32-bit offset 2010-05-30 03:06:12 +02:00
d2ee16abec update LREM to support dual encoding via extra iteration primitives 2010-05-30 02:17:36 +02:00
9ae6b0be4a support dual encoding in LTRIM 2010-05-30 02:16:12 +02:00
a6dd455b09 update LRANGE to use basic iteration code to support dual encoding 2010-05-30 02:15:34 +02:00
697bd5673f inline support for dual encoding in the LINDEX and LSET commands 2010-05-30 02:11:59 +02:00
d72562f7ba generic pop and length function for ziplist encoding 2010-05-30 01:51:55 +02:00
c7d9d662a4 generic push function that supports the dual encoding 2010-05-30 01:46:59 +02:00
0f3dfa87bc change delete function to accept a direction argument, so "p" can be properly updated 2010-05-30 01:39:41 +02:00
033fb554be expose extra functionality from ziplist.c 2010-05-30 01:38:56 +02:00
177a0a0b0d code style consistency fixes 2010-05-30 01:37:03 +02:00
c03206fdf1 ziplistIndex now accepts negative indices 2010-05-29 22:17:16 +02:00
a24ba809d1 fix compile warnings 2010-05-29 21:10:17 +02:00
7b1f85c0a2 use simpler encoding for the length of the previous entry 2010-05-29 21:10:17 +02:00
1ce81fa59b replace functions to get pointers to head and tail by macros 2010-05-29 21:10:17 +02:00
6435c76772 function to insert an element at an arbitrary position in the list 2010-05-29 21:10:17 +02:00
0c0d056412 extract a generic delete function that can be used in pop and delete(range) 2010-05-29 21:10:17 +02:00
bb57b965c4 use the entry struct in zipRawEntryLength 2010-05-29 21:10:17 +02:00
03e52931dd rename argument names to s* to disambiguate from e* 2010-05-29 21:10:17 +02:00
c8d9e7f4c0 change ziplistRepr to use the entry struct 2010-05-29 21:10:17 +02:00
d593c48869 modify compare function to check if the encoding is equal before comparing 2010-05-29 21:10:16 +02:00
a5456b2cb6 use a struct to retrieve all details for an entry 2010-05-29 21:10:16 +02:00
dcb9cf4e82 initial implementation for making the ziplist doubly linked 2010-05-29 21:10:16 +02:00
fc2c0f7a6c fix some warnings 2010-05-29 21:10:16 +02:00