summaryrefslogtreecommitdiff
path: root/src/bio.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-09-23 16:46:36 +0200
committerantirez <antirez@gmail.com>2015-10-01 13:02:25 +0200
commit9253d8507320dd1d7665a55e11e2cba3ae91c78d (patch)
tree305ccd34924ae2860cd5aec9788c3007621661fa /src/bio.c
parent4d50d691e3fa80c9b9aef5aa0498a0a92654b324 (diff)
downloadredis-9253d8507320dd1d7665a55e11e2cba3ae91c78d.tar.gz
Threaded lazyfree WIP #1.
Diffstat (limited to 'src/bio.c')
-rw-r--r--src/bio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bio.c b/src/bio.c
index 135b8f3b6..d0f74a296 100644
--- a/src/bio.c
+++ b/src/bio.c
@@ -185,6 +185,8 @@ void *bioProcessBackgroundJobs(void *arg) {
close((long)job->arg1);
} else if (type == BIO_AOF_FSYNC) {
aof_fsync((long)job->arg1);
+ } else if (type == BIO_LAZY_FREE) {
+ decrRefCount((robj*)job->arg1);
} else {
serverPanic("Wrong job type in bioProcessBackgroundJobs().");
}