about summary refs log tree commit homepage
path: root/svc.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-05-30 03:50:45 +0000
committerEric Wong <normalperson@yhbt.net>2013-05-30 03:50:45 +0000
commit43ab652e15b4bd0b4cebfe7170c27f312eceb306 (patch)
tree36f50266ea4d2ab52b37392f8ee20f6c47ebd195 /svc.c
parentd1c18e26b0cc05009199f3997f0d57b07cdaa331 (diff)
downloadcmogstored-iosem.tar.gz
This is similar to the AIO channels functionality in Perlbal,
but implemented using semaphores to optimize for the uncontended
case.
Diffstat (limited to 'svc.c')
-rw-r--r--svc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/svc.c b/svc.c
index e9d8d6d..8ea5220 100644
--- a/svc.c
+++ b/svc.c
@@ -96,7 +96,7 @@ struct mog_svc * mog_svc_new(const char *docroot)
         CHECK(int, 0, pthread_mutex_init(&svc->devstats_lock, NULL));
         CHECK(int, 0, pthread_mutex_init(&svc->by_mog_devid_lock, NULL));
         svc->by_mog_devid = hash_initialize(7, NULL, mog_dev_hash,
-                                        mog_dev_cmp, free);
+                                        mog_dev_cmp, mog_dev_free);
         mog_oom_if_null(svc->by_mog_devid);
 
         switch (hash_insert_if_absent(by_docroot, svc, NULL)) {