a4f46f211c
Exit with Fatal error at startup if the RDB file signature or version is wrong.
...
Ref: issue #103
2011-10-14 17:04:24 +02:00
b04e800b98
Use a safe iterator while saving the DB, since the getExpire() function will access the iterating dictionary.
2011-06-17 15:40:55 +02:00
307868e149
DB API refactoring. The changes were designed together with Pieter Noordhuis.
2011-06-14 16:59:45 +02:00
27c8f84c66
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-06-08 23:20:11 +02:00
d0f710ea09
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:33:29 +02:00
760dec3a6c
VM/direct-saving fixes
2011-04-20 17:48:46 +02:00
73f01b0606
Some manual merging of encoded values direct saving
2011-04-20 15:49:32 +02:00
552a6fb39d
fix type id for specially encoded data types, for direct blob saving of intsets, ziplists and zipmaps
2011-04-20 15:41:13 +02:00
5045ff843a
direct saving of specially encoded types implemented for lists and sets too
2011-04-20 15:41:13 +02:00
44d4b87f1f
convert the zipmap into hash in rdb loading if the zipmap has too many elements
2011-04-20 15:41:13 +02:00
3dffb8e21e
save zipmap encoded hashes as blobs. Work in progress.
2011-04-20 15:41:13 +02:00
edfd6ae76b
Test for ENCODING_SKIPLIST instead of ENCODING_RAW
2011-04-06 16:10:40 +02:00
408e12dcaa
Typo
2011-04-06 15:53:52 +02:00
476f044db6
Backport patch: don't use blob-saving
2011-03-22 16:30:29 +01:00
8f0a41be98
Encode sorted set after loading from dump
2011-03-22 16:09:21 +01:00
efc77ad91c
Persistence code for encoded sorted sets
2011-03-22 16:07:37 +01:00
bd70a5f588
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
9a68cf91f0
Wrapper around fwrite to make API consistent
2010-11-21 16:12:25 +01:00
8a623a98c3
Return number of bytes written from rdbSave* functions
2010-11-21 16:07:46 +01:00
97e7f8aec3
non blocking loading of the DB / AOF with informations and ETA in INFO output
2010-11-08 11:52:03 +01:00
b04ce2a35c
Merge master with resolved conflict in src/redis-cli.c
2010-10-13 18:55:46 +02:00
56e52b69fe
Update rdb.c to properly work with new memory strategy for sorted sets
2010-09-22 18:07:52 +02:00
2f6b31c3bb
Fix for a race in BGSAVE that may result in some data not being saved as soon as possible (when the configured saving triggers should fire). Also known as Issue 313, more details there in the google code issue.
2010-08-30 10:32:32 +02:00
2df84b7269
intset loading bug fixed
2010-08-26 19:10:40 +02:00
23c64fe50d
translated a few long logn into int64_t for correctness and to avoid compilation warnings as well
2010-08-26 18:11:26 +02:00
bad7d097e9
fixed a memory leak in the new Set code
2010-08-26 13:18:24 +02:00
a5639e7dd9
Change initialization to allow listening on both a port and socket
2010-08-03 13:33:12 +02:00
96ffb2fe97
merged intset code into the split files
2010-07-02 19:57:12 +02:00
3688d7f308
Compilation fixed on Linux after the source code split
2010-07-01 21:13:38 +02:00
e2641e09cc
redis.c split into many different C files.
...
networking related stuff moved into networking.c
moved more code
more work on layout of source code
SDS instantaneuos memory saving. By Pieter and Salvatore at VMware ;)
cleanly compiling again after the first split, now splitting it in more C files
moving more things around... work in progress
split replication code
splitting more
Sets split
Hash split
replication split
even more splitting
more splitting
minor change
2010-07-01 14:38:51 +02:00