diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-06-21 03:34:11 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-06-25 21:24:37 +0000 |
commit | 2acbe7f4001de74091282ee199e3cad50c2e3e7f (patch) | |
tree | abbe3b11874bf369f1d201c3115907c1bd79a7bf | |
parent | 10a38ab650e3e25e37dd70b310631760d0b2000f (diff) | |
download | cmogstored-2acbe7f4001de74091282ee199e3cad50c2e3e7f.tar.gz |
I forgot why this bound was necessary, so add a comment ensuring I do not forget again.
-rw-r--r-- | thrpool.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -214,8 +214,10 @@ void mog_thrpool_start(struct mog_thrpool *tp, size_t n, void *(*start_fn)(void *), void *arg) { + /* we may be started on a new server before device dirs exist */ if (n == 0) n = 1; + tp->threads = NULL; tp->n_threads = 0; tp->start_fn = start_fn; |