Home
last modified time | relevance | path

Searched refs:sentinel (Results 1 – 25 of 38) sorted by relevance

12

/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_rbtree.c32 sentinel = tree->sentinel; in ngx_rbtree_insert()
34 if (*root == sentinel) { in ngx_rbtree_insert()
36 node->left = sentinel; in ngx_rbtree_insert()
37 node->right = sentinel; in ngx_rbtree_insert()
106 if (*p == sentinel) { in ngx_rbtree_insert_value()
115 node->left = sentinel; in ngx_rbtree_insert_value()
116 node->right = sentinel; in ngx_rbtree_insert_value()
150 node->left = sentinel; in ngx_rbtree_insert_timer_value()
151 node->right = sentinel; in ngx_rbtree_insert_timer_value()
165 sentinel = tree->sentinel; in ngx_rbtree_delete()
[all …]
H A Dngx_rbtree.h35 ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel);
39 ngx_rbtree_node_t *sentinel; member
47 (tree)->sentinel = s; \
54 ngx_rbtree_node_t *sentinel);
56 ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel);
74 ngx_rbtree_min(ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel) in ngx_rbtree_min() argument
76 while (node->left != sentinel) { in ngx_rbtree_min()
H A Dngx_open_file_cache.c49 ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel);
67 ngx_rbtree_init(&cache->rbtree, &cache->sentinel, in ngx_open_file_cache_init()
135 if (cache->rbtree.root != cache->rbtree.sentinel) { in ngx_open_file_cache_cleanup()
1147 ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel) in ngx_open_file_cache_rbtree_insert_value() argument
1171 if (*p == sentinel) { in ngx_open_file_cache_rbtree_insert_value()
1180 node->left = sentinel; in ngx_open_file_cache_rbtree_insert_value()
1181 node->right = sentinel; in ngx_open_file_cache_rbtree_insert_value()
1191 ngx_rbtree_node_t *node, *sentinel; in ngx_open_file_lookup() local
1195 sentinel = cache->rbtree.sentinel; in ngx_open_file_lookup()
1197 while (node != sentinel) { in ngx_open_file_lookup()
H A Dngx_resolver.c3375 sentinel = r->name_rbtree.sentinel; in ngx_resolver_lookup_name()
3377 while (node != sentinel) { in ngx_resolver_lookup_name()
3416 sentinel = r->srv_rbtree.sentinel; in ngx_resolver_lookup_srv()
3455 sentinel = r->addr_rbtree.sentinel; in ngx_resolver_lookup_addr()
3491 sentinel = r->addr6_rbtree.sentinel; in ngx_resolver_lookup_addr6()
3552 if (*p == sentinel) { in ngx_resolver_rbtree_insert_value()
3561 node->left = sentinel; in ngx_resolver_rbtree_insert_value()
3562 node->right = sentinel; in ngx_resolver_rbtree_insert_value()
3595 if (*p == sentinel) { in ngx_resolver_rbtree_insert_addr6_value()
3604 node->left = sentinel; in ngx_resolver_rbtree_insert_addr6_value()
[all …]
H A Dngx_string.c1902 ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel) in ngx_str_rbtree_insert_value() argument
1925 if (*p == sentinel) { in ngx_str_rbtree_insert_value()
1934 node->left = sentinel; in ngx_str_rbtree_insert_value()
1935 node->right = sentinel; in ngx_str_rbtree_insert_value()
1945 ngx_rbtree_node_t *node, *sentinel; in ngx_str_rbtree_lookup() local
1948 sentinel = rbtree->sentinel; in ngx_str_rbtree_lookup()
1950 while (node != sentinel) { in ngx_str_rbtree_lookup()
H A Dngx_open_file_cache.h93 ngx_rbtree_node_t sentinel; member
/f-stack/app/nginx-1.16.1/src/event/
H A Dngx_event_timer.c36 ngx_rbtree_node_t *node, *root, *sentinel; in ngx_event_find_timer() local
43 sentinel = ngx_event_timer_rbtree.sentinel; in ngx_event_find_timer()
45 node = ngx_rbtree_min(root, sentinel); in ngx_event_find_timer()
57 ngx_rbtree_node_t *node, *root, *sentinel; in ngx_event_expire_timers() local
59 sentinel = ngx_event_timer_rbtree.sentinel; in ngx_event_expire_timers()
64 if (root == sentinel) { in ngx_event_expire_timers()
68 node = ngx_rbtree_min(root, sentinel); in ngx_event_expire_timers()
103 ngx_rbtree_node_t *node, *root, *sentinel; in ngx_event_no_timers_left() local
105 sentinel = ngx_event_timer_rbtree.sentinel; in ngx_event_no_timers_left()
108 if (root == sentinel) { in ngx_event_no_timers_left()
[all …]
H A Dngx_event_udp.c470 ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel) in ngx_udp_rbtree_insert_value() argument
506 if (*p == sentinel) { in ngx_udp_rbtree_insert_value()
515 node->left = sentinel; in ngx_udp_rbtree_insert_value()
516 node->right = sentinel; in ngx_udp_rbtree_insert_value()
588 ngx_rbtree_node_t *node, *sentinel; in ngx_lookup_udp_connection() local
608 sentinel = ls->rbtree.sentinel; in ngx_lookup_udp_connection()
619 while (node != sentinel) { in ngx_lookup_udp_connection()
/f-stack/app/redis-5.0.5/
H A Dsentinel.conf31 pidfile /var/run/redis-sentinel.pid
84 sentinel monitor mymaster 127.0.0.1 6379 2
113 sentinel down-after-milliseconds mymaster 30000
121 sentinel parallel-syncs mymaster 1
146 sentinel failover-timeout mymaster 180000
219 sentinel deny-scripts-reconfig yes
H A Druntest-sentinel14 $TCLSH tests/sentinel/run.tcl $*
H A D.gitignore10 redis-sentinel
/f-stack/app/redis-5.0.5/tests/sentinel/tests/
H A D06-ckquorum.tcl23 kill_instance sentinel 1
24 kill_instance sentinel 2
25 kill_instance sentinel 3
30 restart_instance sentinel 1
31 restart_instance sentinel 2
32 restart_instance sentinel 3
H A D07-down-conditions.tcl7 [dict get [S 4 sentinel master mymaster] flags] eq "master"
16 [dict get [S 4 sentinel master mymaster] flags]]
24 kill_instance sentinel $id
H A D01-conf-update.tcl11 kill_instance sentinel 1
29 restart_instance sentinel 1
H A D00-base.tcl74 kill_instance sentinel $id
87 restart_instance sentinel $id
/f-stack/app/redis-5.0.5/src/
H A Dsentinel.c251 } sentinel; variable
482 sentinel.current_epoch = 0; in initSentinel()
484 sentinel.tilt = 0; in initSentinel()
490 sentinel.announce_port = 0; in initSentinel()
493 memset(sentinel.myid,0,sizeof(sentinel.myid)); in initSentinel()
1901 line = sdscatrepr(line, sentinel.announce_ip, sdslen(sentinel.announce_ip)); in rewriteConfigSentinelOption()
2228 if (sentinel.tilt) return; in sentinelRefreshInstanceInfo()
3354 sentinel.tilt, in sentinelInfoCommand()
4422 if (sentinel.tilt) { in sentinelHandleRedisInstance()
4424 sentinel.tilt = 0; in sentinelHandleRedisInstance()
[all …]
H A DMakefile184 REDIS_SENTINEL_NAME=redis-sentinel
185 …v.o slowlog.o scripting.o bio.o rio.o rand.o memtest.o crc64.o bitops.o sentinel.o notify.o setpro…
282 test-sentinel: $(REDIS_SENTINEL_NAME)
283 @(cd ..; ./runtest-sentinel)
/f-stack/app/nginx-1.16.1/src/stream/
H A Dngx_stream_limit_conn_module.c236 ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel) in ngx_stream_limit_conn_rbtree_insert_value() argument
260 if (*p == sentinel) { in ngx_stream_limit_conn_rbtree_insert_value()
269 node->left = sentinel; in ngx_stream_limit_conn_rbtree_insert_value()
270 node->right = sentinel; in ngx_stream_limit_conn_rbtree_insert_value()
280 ngx_rbtree_node_t *node, *sentinel; in ngx_stream_limit_conn_lookup() local
284 sentinel = rbtree->sentinel; in ngx_stream_limit_conn_lookup()
286 while (node != sentinel) { in ngx_stream_limit_conn_lookup()
369 ngx_rbtree_node_t *sentinel; in ngx_stream_limit_conn_init_zone() local
408 sentinel = ngx_slab_alloc(shpool, sizeof(ngx_rbtree_node_t)); in ngx_stream_limit_conn_init_zone()
409 if (sentinel == NULL) { in ngx_stream_limit_conn_init_zone()
[all …]
H A Dngx_stream_geo_module.c50 ngx_rbtree_node_t sentinel; member
104 ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel);
429 ngx_rbtree_init(&ctx.rbtree, &ctx.sentinel, ngx_str_rbtree_insert_value); in ngx_stream_geo_block()
1538 ctx->rbtree.sentinel); in ngx_stream_geo_create_binary_base()
1585 ngx_rbtree_node_t *sentinel) in ngx_stream_geo_copy_values() argument
1590 if (node == sentinel) { in ngx_stream_geo_copy_values()
1606 p = ngx_stream_geo_copy_values(base, p, node->left, sentinel); in ngx_stream_geo_copy_values()
1608 return ngx_stream_geo_copy_values(base, p, node->right, sentinel); in ngx_stream_geo_copy_values()
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_limit_conn_module.c258 ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel) in ngx_http_limit_conn_rbtree_insert_value() argument
282 if (*p == sentinel) { in ngx_http_limit_conn_rbtree_insert_value()
291 node->left = sentinel; in ngx_http_limit_conn_rbtree_insert_value()
292 node->right = sentinel; in ngx_http_limit_conn_rbtree_insert_value()
301 ngx_rbtree_node_t *node, *sentinel; in ngx_http_limit_conn_lookup() local
305 sentinel = rbtree->sentinel; in ngx_http_limit_conn_lookup()
307 while (node != sentinel) { in ngx_http_limit_conn_lookup()
390 ngx_rbtree_node_t *sentinel; in ngx_http_limit_conn_init_zone() local
429 sentinel = ngx_slab_alloc(shpool, sizeof(ngx_rbtree_node_t)); in ngx_http_limit_conn_init_zone()
430 if (sentinel == NULL) { in ngx_http_limit_conn_init_zone()
[all …]
H A Dngx_http_limit_req_module.c28 ngx_rbtree_node_t sentinel; member
320 ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel) in ngx_http_limit_req_rbtree_insert_value() argument
344 if (*p == sentinel) { in ngx_http_limit_req_rbtree_insert_value()
353 node->left = sentinel; in ngx_http_limit_req_rbtree_insert_value()
354 node->right = sentinel; in ngx_http_limit_req_rbtree_insert_value()
367 ngx_rbtree_node_t *node, *sentinel; in ngx_http_limit_req_lookup() local
376 sentinel = ctx->sh->rbtree.sentinel; in ngx_http_limit_req_lookup()
378 while (node != sentinel) { in ngx_http_limit_req_lookup()
675 ngx_rbtree_init(&ctx->sh->rbtree, &ctx->sh->sentinel, in ngx_http_limit_req_init_zone()
/f-stack/app/redis-5.0.5/tests/sentinel/tests/includes/
H A Dinit-tests.tcl4 foreach type {redis sentinel} {
36 assert {[S $id sentinel master mymaster] ne {}}
/f-stack/app/redis-5.0.5/tests/sentinel/
H A Drun.tcl12 spawn_instance sentinel $::sentinel_base_port $::instances_count
/f-stack/app/redis-5.0.5/deps/lua/src/
H A Dloadlib.c448 #define sentinel ((void *)&sentinel_) macro
458 if (lua_touserdata(L, -1) == sentinel) /* check loops */ in ll_require()
481 lua_pushlightuserdata(L, sentinel); in ll_require()
488 if (lua_touserdata(L, -1) == sentinel) { /* module did not set a value? */ in ll_require()
/f-stack/app/nginx-1.16.1/src/http/
H A Dngx_http_file_cache.c972 ngx_rbtree_node_t *node, *sentinel; in ngx_http_file_cache_lookup() local
978 sentinel = cache->sh->rbtree.sentinel; in ngx_http_file_cache_lookup()
980 while (node != sentinel) { in ngx_http_file_cache_lookup()
1040 if (*p == sentinel) { in ngx_http_file_cache_rbtree_insert_value()
1049 node->left = sentinel; in ngx_http_file_cache_rbtree_insert_value()
1050 node->right = sentinel; in ngx_http_file_cache_rbtree_insert_value()
1709 ngx_queue_t *q, *sentinel; in ngx_http_file_cache_forced_expire() local
1728 sentinel = NULL; in ngx_http_file_cache_forced_expire()
1739 if (q == sentinel) { in ngx_http_file_cache_forced_expire()
1775 if (sentinel == NULL) { in ngx_http_file_cache_forced_expire()
[all …]

12