@@ -96,6 +96,7 @@ ngx_http_lua_shdict_init_zone(ngx_shm_zone_t *shm_zone, void *data)
96
96
#endif
97
97
98
98
done :
99
+
99
100
dd ("get lmcf" );
100
101
101
102
lmcf = ctx -> main_conf ;
@@ -971,6 +972,7 @@ ngx_http_lua_shdict_set_helper(lua_State *L, int flags)
971
972
}
972
973
973
974
replace :
975
+
974
976
if (value .data && value .len == (size_t ) sd -> value_len ) {
975
977
976
978
ngx_log_debug0 (NGX_LOG_DEBUG_HTTP , ctx -> log , 0 ,
@@ -1015,6 +1017,7 @@ ngx_http_lua_shdict_set_helper(lua_State *L, int flags)
1015
1017
"NOT matched, removing it first" );
1016
1018
1017
1019
remove :
1020
+
1018
1021
ngx_queue_remove (& sd -> queue );
1019
1022
1020
1023
node = (ngx_rbtree_node_t * )
@@ -1027,6 +1030,7 @@ ngx_http_lua_shdict_set_helper(lua_State *L, int flags)
1027
1030
}
1028
1031
1029
1032
insert :
1033
+
1030
1034
/* rc == NGX_DECLINED or value size unmatch */
1031
1035
1032
1036
if (value .data == NULL ) {
@@ -1084,6 +1088,7 @@ ngx_http_lua_shdict_set_helper(lua_State *L, int flags)
1084
1088
}
1085
1089
1086
1090
allocated :
1091
+
1087
1092
sd = (ngx_http_lua_shdict_node_t * ) & node -> color ;
1088
1093
1089
1094
node -> key = hash ;
@@ -1479,6 +1484,7 @@ ngx_http_lua_ffi_shdict_store(ngx_shm_zone_t *zone, int op, u_char *key,
1479
1484
}
1480
1485
1481
1486
replace :
1487
+
1482
1488
if (str_value_buf && str_value_len == (size_t ) sd -> value_len ) {
1483
1489
1484
1490
ngx_log_debug0 (NGX_LOG_DEBUG_HTTP , ctx -> log , 0 ,
@@ -1520,6 +1526,7 @@ ngx_http_lua_ffi_shdict_store(ngx_shm_zone_t *zone, int op, u_char *key,
1520
1526
"NOT matched, removing it first" );
1521
1527
1522
1528
remove :
1529
+
1523
1530
ngx_queue_remove (& sd -> queue );
1524
1531
1525
1532
node = (ngx_rbtree_node_t * )
@@ -1532,6 +1539,7 @@ ngx_http_lua_ffi_shdict_store(ngx_shm_zone_t *zone, int op, u_char *key,
1532
1539
}
1533
1540
1534
1541
insert :
1542
+
1535
1543
/* rc == NGX_DECLINED or value size unmatch */
1536
1544
1537
1545
if (str_value_buf == NULL ) {
@@ -1583,6 +1591,7 @@ ngx_http_lua_ffi_shdict_store(ngx_shm_zone_t *zone, int op, u_char *key,
1583
1591
}
1584
1592
1585
1593
allocated :
1594
+
1586
1595
sd = (ngx_http_lua_shdict_node_t * ) & node -> color ;
1587
1596
1588
1597
node -> key = hash ;
0 commit comments