Changeset 4570
- Timestamp:
- 02/10/07 01:49:49 (2 years ago)
- Files:
-
- trackerd/trunk/trackerd/commands.c (modified) (2 diffs)
- trackerd/trunk/trackerd/main.c (modified) (3 diffs)
- trackerd/trunk/trackerd/tracker.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trackerd/trunk/trackerd/commands.c
r4428 r4570 91 91 92 92 while(client->state <= WT_CLIENT_STATE_SAID_HELLO) { 93 if(!pool)94 pool = wi_pool_init(wi_pool_alloc());95 96 93 if(client->buffer_offset == 0) { 97 94 do { … … 128 125 wt_parse_command(string); 129 126 130 if(++i % 10 == 0) { 131 wi_release(pool); 132 pool = NULL; 133 } 127 if(++i % 10 == 0) 128 wi_pool_drain(pool); 134 129 } 135 130 trackerd/trunk/trackerd/main.c
r4429 r4570 231 231 wi_log_startup = false; 232 232 233 wi_release(pool);234 pool = wi_pool_init(wi_pool_alloc());233 /* clean up pool after startup */ 234 wi_pool_drain(pool); 235 235 236 236 /* enter the signal handling thread in the main thread */ … … 391 391 392 392 while(wt_running) { 393 if(!pool)394 pool = wi_pool_init(wi_pool_alloc());395 396 393 signal = wt_wait_signals(); 397 394 … … 419 416 } 420 417 421 if(++i % 10 == 0) { 422 wi_release(pool); 423 pool = NULL; 424 } 418 if(++i % 10 == 0) 419 wi_pool_drain(pool); 425 420 } 426 421 trackerd/trunk/trackerd/tracker.c
r4428 r4570 214 214 215 215 while(wt_running) { 216 if(!pool)217 pool = wi_pool_init(wi_pool_alloc());218 219 216 ip = NULL; 220 217 … … 247 244 248 245 next: 249 if(++i % 100 == 0) { 250 wi_release(pool); 251 pool = NULL; 252 } 246 if(++i % 100 == 0) 247 wi_pool_drain(pool); 253 248 } 254 249 … … 272 267 273 268 while(wt_running) { 274 if(!pool)275 pool = wi_pool_init(wi_pool_alloc());276 277 269 command = NULL; 278 270 arguments = NULL; … … 340 332 341 333 next: 342 if(++i % 100 == 0) { 343 wi_release(pool); 344 pool = NULL; 345 } 334 if(++i % 100 == 0) 335 wi_pool_drain(pool); 346 336 } 347 337
