diff options
author | antirez <antirez@gmail.com> | 2015-09-25 16:22:25 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-10-01 13:02:25 +0200 |
commit | b08c36c5f2e635a128f2a306b6f38a0159ed56e6 (patch) | |
tree | d85aac24eda28dde48dc60d2399c0dc083fc5d30 /src/bio.c | |
parent | c7b46a471996e45a464a2b52d6cdc81487f19a05 (diff) | |
download | redis-b08c36c5f2e635a128f2a306b6f38a0159ed56e6.tar.gz |
Lazyfree: keep count of objects to free.
Diffstat (limited to 'src/bio.c')
-rw-r--r-- | src/bio.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -84,6 +84,7 @@ struct bio_job { }; void *bioProcessBackgroundJobs(void *arg); +void lazyfreeFreeObjectFromBioThread(robj *o); /* Make sure we have enough stack to perform all the things we do in the * main thread. */ @@ -186,7 +187,7 @@ void *bioProcessBackgroundJobs(void *arg) { } else if (type == BIO_AOF_FSYNC) { aof_fsync((long)job->arg1); } else if (type == BIO_LAZY_FREE) { - decrRefCount((robj*)job->arg1); + lazyfreeFreeObjectFromBioThread(job->arg1); } else { serverPanic("Wrong job type in bioProcessBackgroundJobs()."); } |