]> git.saurik.com Git - redis.git/commit
Stop using /dev/null to find out the serialized object length
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Sun, 21 Nov 2010 15:27:47 +0000 (16:27 +0100)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Sun, 21 Nov 2010 15:31:27 +0000 (16:31 +0100)
commitbd70a5f5884ec46983ac32a1ae0b48f4d356a9d5
treeb8cf2771ce9b50f7091dccfb6da2a45edf09361b
parent9a68cf91f01a920c7e84773d3b3ae41565b4849e
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.
src/debug.c
src/rdb.c
src/redis.c
src/redis.h
src/vm.c