Permalink
Browse files

cosmetic hanges

  • Loading branch information...
1 parent 27167b6 commit 9471a9a78ba2350439ae6997867c574307203f77 @alexly committed Apr 23, 2012
Showing with 3 additions and 11 deletions.
  1. +1 −2 ngx_http_r4x_directive.c
  2. +1 −8 ngx_http_r4x_module.c
  3. +1 −1 ngx_http_r4x_module.h
@@ -73,8 +73,7 @@ ngx_http_r4x_compile_directive(ngx_conf_t *cf, ngx_http_r4x_loc_conf_t * loc_con
value = cf->args->elts;
- if(ngx_memcmp(value[0].data, "redis_read_cmd", value[0].len) == 0
- ||ngx_memcmp(value[0].data, "redis_read_cmd", value[0].len) == 0)
+ if(ngx_memcmp(value[0].data, "redis_read_cmd", value[0].len) == 0)
{
directive->read_only = 1;
}
@@ -55,13 +55,6 @@ static ngx_command_t ngx_http_r4x_commands[] = {
NGX_HTTP_SRV_CONF_OFFSET,
0,
NULL },
-
- { ngx_string("redis_read_cmd"),
- NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF|NGX_CONF_ANY,
- ngx_http_r4x_exec_handler_init,
- NGX_HTTP_LOC_CONF_OFFSET,
- 0,
- NULL },
{ ngx_string("redis_read_cmd_ret"),
NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF|NGX_CONF_ANY,
@@ -77,7 +70,7 @@ static ngx_command_t ngx_http_r4x_commands[] = {
0,
NULL },
- { ngx_string("redis_write_cmd_ret"),
+ { ngx_string("redis_write_cmd_return"),
NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF|NGX_CONF_ANY,
ngx_http_r4x_exec_return_handler_init,
NGX_HTTP_LOC_CONF_OFFSET,
@@ -51,7 +51,7 @@ typedef struct {
} ngx_http_r4x_parsed_json;
typedef struct {
- ngx_array_t arguments; // metadata for redis arguments
+ ngx_array_t arguments;
char **cmd_argvs;
size_t *cmd_argv_lens;
redisCallbackFn *process_reply;

0 comments on commit 9471a9a

Please sign in to comment.