summaryrefslogtreecommitdiff
path: root/src/bio.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-09-25 16:22:25 +0200
committerantirez <antirez@gmail.com>2015-10-01 13:02:25 +0200
commitb08c36c5f2e635a128f2a306b6f38a0159ed56e6 (patch)
treed85aac24eda28dde48dc60d2399c0dc083fc5d30 /src/bio.c
parentc7b46a471996e45a464a2b52d6cdc81487f19a05 (diff)
downloadredis-b08c36c5f2e635a128f2a306b6f38a0159ed56e6.tar.gz
Lazyfree: keep count of objects to free.
Diffstat (limited to 'src/bio.c')
-rw-r--r--src/bio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bio.c b/src/bio.c
index d0f74a296..fa10a503c 100644
--- a/src/bio.c
+++ b/src/bio.c
@@ -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().");
}