doc: ngx.worker.count() is available in the init_worker_by_lua* context.master
commitc5ada9947342f7c47fc96de6e387a3481b39b518
authorNick Muerdter <nick.muerdter@nrel.gov>
Sun, 31 Jul 2016 14:30:40 +0000 (31 08:30 -0600)
committerYichun Zhang (agentzh) <agentzh@gmail.com>
Sun, 31 Jul 2016 17:54:09 +0000 (31 10:54 -0700)
treea216a1b6d13cc8aea0431040db5776b94343919a
parentb9bd8028fd6dce61e4aadbe8fc7d23d8ee4a292f
doc: ngx.worker.count() is available in the init_worker_by_lua* context.

The `ngx.worker.count` documentation was missing `init_worker_by_lua*` as
a valid context. This updates the documentation and adds a test to
demonstrate that this method does in fact work in the
`init_worker_by_lua` context.

Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
README.markdown
t/133-worker-count.t