diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-05-30 03:50:36 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-05-30 03:50:36 +0000 |
commit | 61f66e5a043e9e8899d2f6e82a477e83b8e3c030 (patch) | |
tree | fa83da9aab8ff28cae48d747ab8b560c9de1d740 | |
parent | f76bf2350d4a345cde9b3621e0ba4d30e53b02e4 (diff) | |
download | cmogstored-61f66e5a043e9e8899d2f6e82a477e83b8e3c030.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; |