Browse code

core: fix setting pv_cache_limit param

Daniel-Constantin Mierla authored on 04/12/2017 08:03:28
Showing 1 changed files
... ...
@@ -1556,11 +1556,11 @@ assign_stm:
1556 1556
 	| MAX_WLOOPS EQUAL error { yyerror("number expected"); }
1557 1557
 	| PVBUFSIZE EQUAL NUMBER { pv_set_buffer_size($3); }
1558 1558
 	| PVBUFSIZE EQUAL error { yyerror("number expected"); }
1559
-	| PVBUFSLOTS EQUAL NUMBER { default_core_cfg.pv_cache_limit=$3; }
1559
+	| PVBUFSLOTS EQUAL NUMBER { pv_set_buffer_slots($3); }
1560 1560
 	| PVBUFSLOTS EQUAL error { yyerror("number expected"); }
1561
-	| PVCACHELIMIT EQUAL NUMBER { default_core_cfg.pv_cache_action=$3; }
1561
+	| PVCACHELIMIT EQUAL NUMBER { default_core_cfg.pv_cache_limit=$3; }
1562 1562
 	| PVCACHELIMIT EQUAL error { yyerror("number expected"); }
1563
-	| PVCACHEACTION EQUAL NUMBER { pv_set_buffer_slots($3); }
1563
+	| PVCACHEACTION EQUAL NUMBER { default_core_cfg.pv_cache_action=$3; }
1564 1564
 	| PVCACHEACTION EQUAL error { yyerror("number expected"); }
1565 1565
 	| HTTP_REPLY_PARSE EQUAL NUMBER { http_reply_parse=$3; }
1566 1566
 	| HTTP_REPLY_PARSE EQUAL error { yyerror("boolean value expected"); }