Skip to content

Commit 9789058

Browse files
committed
documented that ngx.worker.id() requires nginx 1.9.1+.
1 parent fced532 commit 9789058

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.markdown

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7180,6 +7180,9 @@ Returns the ordinal number of the current Nginx worker processes (starting from
71807180
So if the total number of workers is `N`, then this method may return a number between 0
71817181
and `N - 1` (inclusive).
71827182

7183+
This function returns meaningful values only for NGINX 1.9.1+. With earlier versions of NGINX, it
7184+
always returns `nil`.
7185+
71837186
See also [ngx.worker.count](#ngxworkercount).
71847187

71857188
This API was first introduced in the `0.9.20` release.

doc/HttpLuaModule.wiki

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6074,6 +6074,9 @@ Returns the ordinal number of the current Nginx worker processes (starting from
60746074
So if the total number of workers is `N`, then this method may return a number between 0
60756075
and `N - 1` (inclusive).
60766076
6077+
This function returns meaningful values only for NGINX 1.9.1+. With earlier versions of NGINX, it
6078+
always returns `nil`.
6079+
60776080
See also [[#ngx.worker.count|ngx.worker.count]].
60786081
60796082
This API was first introduced in the <code>0.9.20</code> release.

0 commit comments

Comments
 (0)