about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-06-21 03:34:11 +0000
committerEric Wong <normalperson@yhbt.net>2013-06-25 21:24:37 +0000
commit2acbe7f4001de74091282ee199e3cad50c2e3e7f (patch)
treeabbe3b11874bf369f1d201c3115907c1bd79a7bf
parent10a38ab650e3e25e37dd70b310631760d0b2000f (diff)
downloadcmogstored-2acbe7f4001de74091282ee199e3cad50c2e3e7f.tar.gz
I forgot why this bound was necessary, so add a comment
ensuring I do not forget again.
-rw-r--r--thrpool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/thrpool.c b/thrpool.c
index 3bff31e..cf1afba 100644
--- a/thrpool.c
+++ b/thrpool.c
@@ -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;