diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-06-21 03:34:13 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-06-25 21:25:23 +0000 |
commit | 2376ed3c3da3bd2c9e8326e7dd75be2188fffc35 (patch) | |
tree | aafc7868e697e25bcda54b8db77b0cf4b89c7150 /svc_dev.c | |
parent | e90b43119ff33fb591ffb3bc100cf847537ca5fb (diff) | |
download | cmogstored-2376ed3c3da3bd2c9e8326e7dd75be2188fffc35.tar.gz |
If the mogstored sidechannel is inactive (in HTTP-only mode), we should still count the number of devices correctly to correctly scale the number of worker threads.
Diffstat (limited to 'svc_dev.c')
-rw-r--r-- | svc_dev.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -108,9 +108,6 @@ static int svc_scandev(struct mog_svc *svc, size_t *nr, mog_scandev_cb cb) struct dirent *ent; int rc = 0; - if (svc->mgmt_mfd == NULL) - return 0; - CHECK(int, 0, pthread_mutex_lock(&svc->devstats_lock)); svc_init_dev_hash(svc); rewinddir(svc->dir); |