Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4824 - trunk/src/core

Anonymous User
August 18, 2012 07:20PM
Author: mdounin
Date: 2012-08-18 23:17:58 +0000 (Sat, 18 Aug 2012)
New Revision: 4824
URL: http://trac.nginx.org/nginx/changeset/4824/nginx

Log:
Radix tree preallocation fix.

The preallocation size was calculated incorrectly and was always 8 due to
sizeof(ngx_radix_tree_t) accidentally used instead of sizeof(ngx_radix_node_t).


Modified:
trunk/src/core/ngx_radix_tree.c

Modified: trunk/src/core/ngx_radix_tree.c
===================================================================
--- trunk/src/core/ngx_radix_tree.c 2012-08-18 23:04:39 UTC (rev 4823)
+++ trunk/src/core/ngx_radix_tree.c 2012-08-18 23:17:58 UTC (rev 4824)
@@ -60,7 +60,7 @@
*/

if (preallocate == -1) {
- switch (ngx_pagesize / sizeof(ngx_radix_tree_t)) {
+ switch (ngx_pagesize / sizeof(ngx_radix_node_t)) {

/* amd64 */
case 128:

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4824 - trunk/src/core

Anonymous User 1046 August 18, 2012 07:20PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 184
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready