antirez
11872466e3
Fixed a few typos
2011-11-09 21:59:27 +01:00
antirez
d70e1d465c
Fixed bug breaking rdbSaveMillisecondTime() in 32 bit systems. Thanks to @anydot (Přemysl Hrubý)
2011-11-09 18:47:48 +01:00
antirez
027876589d
Initial support for key expire times with millisecond resolution. RDB version is now 3, new opcoded added for high resolution times. Redis is still able to correctly load RDB version 2. Tests passing but still a work in progress. API to specify milliseconds expires still missing, but the precision of normal expires is now already improved and working.
2011-11-09 16:51:19 +01:00
antirez
d6c3b3004e
dict.c API names modified to be more coincise and consistent.
2011-11-08 17:07:55 +01:00
antirez
e4bc5b7339
A past commit removed the inclusion of redis.h from rdb.c, completely breaking 32 bit builds under Linux.
2011-10-23 10:42:16 +02:00
antirez
0a5ca33f90
Exit with Fatal error at startup if the RDB file signature or version is wrong.
...
Ref: issue #103
2011-10-14 16:59:38 +02:00
antirez
357f49db2f
replaced redisAssert() with redisAssertWithInfo() in a shitload of places.
2011-10-04 18:43:03 +02:00
antirez
3ad12623d4
rioInitWithFile nad rioInitWithBuffer functions now take a rio structure pointer to avoid copying a structure to return value to the caller.
2011-09-22 16:00:40 +02:00
antirez
dbdf74ddfd
merge conflicts resolved
2011-09-22 15:15:26 +02:00
antirez
59f09141f5
diskstore removed
2011-06-25 12:22:03 +02:00
antirez
0b00199553
DB API refactoring. The changes were designed together with Pieter Noordhuis.
2011-06-20 16:42:16 +02:00
antirez
d537a7b296
Use a safe iterator while saving the DB, since the getExpire() function will access the iterating dictionary.
2011-06-17 15:41:22 +02:00
antirez
2d138989e3
minor code aesthetic change
2011-06-10 18:13:57 +02:00
antirez
0798b88e34
automatic AOF rewrite first implementation. Still to be tested.
2011-06-10 12:39:23 +02:00
antirez
00b2ab2c8d
INFO now contains the time (in usecs) needed to fork() in order to persist. The info is available in the stats section of INFO.
2011-05-29 15:17:29 +02:00
Pieter Noordhuis
9a22de6ad0
Fix up rdbWriteRaw to return number of bytes written
2011-05-14 12:47:42 +02:00
Pieter Noordhuis
15788d3c5a
More rioRead()
2011-05-14 12:32:50 +02:00
Pieter Noordhuis
78feade83d
Move rdbLoad* to top; update comments
2011-05-13 23:24:19 +02:00
Pieter Noordhuis
43b1feb2f0
Make RDB types/opcodes explicit; load/save object type
2011-05-13 22:14:39 +02:00
Pieter Noordhuis
ce9195ad16
Abstract file/buffer I/O to support in-memory serialization
2011-05-13 17:31:00 +02:00
antirez
4e6eb6cb28
RDB version signature bumped to 2, now that direct saving of specially encoded types is implemented 2.2 instances are no longer able to read rdb files produced by 2.4 or unstable.
2011-05-10 11:31:37 +02:00
Pieter Noordhuis
26d798bbf3
Update target encoding for sorted set from rdb
2011-04-06 16:38:34 +02:00
Pieter Noordhuis
a6ca3077d4
Test for ENCODING_SKIPLIST instead of ENCODING_RAW
2011-04-06 16:17:07 +02:00
Pieter Noordhuis
e82797ebac
Typo
2011-04-06 16:15:15 +02:00
Pieter Noordhuis
b254ad427c
Merge branch 'unstable' into unstable-zset
...
Conflicts:
src/object.c
2011-04-06 16:15:01 +02:00
antirez
b2b9d54320
Cluster branch merged to unstable.
2011-03-29 17:51:15 +02:00
Pieter Noordhuis
940daef2c4
Encode sorted set after loading from dump
2011-03-10 17:50:13 +01:00
Pieter Noordhuis
855bf7b0f8
Persistence code for encoded sorted sets
2011-03-09 13:16:38 +01:00
antirez
844510446a
fix type in rdbSaveKeyValuePair() when saving an intset. Don't merge this commit into 2.2 as will not apply cleanly.
2011-02-28 17:55:05 +01:00
antirez
547eead3ee
direct saving of specially encoded types implemented for lists and sets too
2011-02-28 17:53:47 +01:00
antirez
eea47938d3
define name typo fixed
2011-02-28 17:36:12 +01:00
antirez
7efbda2d64
save ziplist encoded type as a different type id. Done as separated commit since this is the part that will not merge cleanly in 2.2
2011-02-28 17:06:09 +01:00
antirez
5fdf5c6b45
convert the zipmap into hash in rdb loading if the zipmap has too many elements
2011-02-28 16:55:34 +01:00
antirez
60a9b0f615
fix for zipmap raw saving in unstable branch
2011-02-28 15:13:49 +01:00
antirez
102474012d
save zipmap encoded hashes as blobs. Work in progress.
2011-02-28 09:56:48 +01:00
antirez
fd16bf40d9
fixed two diskstore issues, a quasi-deadlock creating problems with I/O speed and a race condition among threads
2011-02-11 11:16:15 +01:00
antirez
c378cabde7
blocking SAVE implemented
2011-01-08 00:09:57 +01:00
antirez
85fa300825
more work towards diskstore bgsave
2011-01-07 19:31:42 +01:00
antirez
e6fdae80f8
source reshaped a bit to play well with a bgsaving thread, still work to do, does not compile.
2011-01-07 18:15:14 +01:00
antirez
9f986a15ff
BGSAVE work in progress
2011-01-05 18:38:31 +01:00
antirez
e01fbe642f
filesystem based KV store mostly implemented in diskstore.c
2010-12-30 17:07:06 +01:00
antirez
d4970df83f
more work done for diskstore without trying to compile, more work needed to build again.
2010-12-30 16:41:36 +01:00
antirez
a8d2f3796d
touched key for WATCH refactored into a more general thing that can be used also for the cache system. Some more changes towards diskstore working.
2010-12-29 19:39:42 +01:00
antirez
a43d96c4c8
a lot of code reworked/removed to implement object caching
2010-12-28 18:06:40 +01:00
Pieter Noordhuis
e127bd9c53
Stop using /dev/null to find out the serialized object length
...
Now the rdbSave* functions return the number of bytes written (or
required to write) in serializing a Redis object, writing to /dev/null
and using ftell (which doesn't work on FreeBSD) isn't needed anymore.
2010-11-21 16:31:27 +01:00
Pieter Noordhuis
47ddeec2dd
Wrapper around fwrite to make API consistent
2010-11-21 16:12:25 +01:00
Pieter Noordhuis
f73971ae53
Return number of bytes written from rdbSave* functions
2010-11-21 16:07:46 +01:00
antirez
2ccb7c9f4f
non blocking loading of the DB / AOF with informations and ETA in INFO output
2010-11-08 11:52:03 +01:00
Pieter Noordhuis
4158de4e63
Merge master with resolved conflict in src/redis-cli.c
2010-10-13 18:55:46 +02:00
Pieter Noordhuis
e9d2f1b266
Update rdb.c to properly work with new memory strategy for sorted sets
2010-09-22 18:07:52 +02:00