mirror of
https://github.com/fluencelabs/redis
synced 2025-06-17 11:11:20 +00:00
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.
This commit is contained in:
@ -216,7 +216,7 @@ void debugCommand(redisClient *c) {
|
||||
"encoding:%s serializedlength:%lld "
|
||||
"lru:%d lru_seconds_idle:%lu",
|
||||
(void*)val, val->refcount,
|
||||
strenc, (long long) rdbSavedObjectLen(val,NULL),
|
||||
strenc, (long long) rdbSavedObjectLen(val),
|
||||
val->lru, estimateObjectIdleTime(val));
|
||||
} else {
|
||||
vmpointer *vp = (vmpointer*) val;
|
||||
|
Reference in New Issue
Block a user