diff options
| author | zhangchengwei <[email protected]> | 2018-11-26 16:04:03 +0800 |
|---|---|---|
| committer | zhangchengwei <[email protected]> | 2018-11-26 16:04:03 +0800 |
| commit | 04524b6ba04c5a5e78814ab0284528470bd7550e (patch) | |
| tree | 47f5cab05e904cd142b3b30a4a2db88b7982f8d6 /src/pg_valve_maat.cpp | |
| parent | 4c2dc7aed349cd34f582ae35d261e92619b62737 (diff) | |
添加生效范围;限速百分比改为小数
Diffstat (limited to 'src/pg_valve_maat.cpp')
| -rw-r--r-- | src/pg_valve_maat.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pg_valve_maat.cpp b/src/pg_valve_maat.cpp index 31039d4..a04e177 100644 --- a/src/pg_valve_maat.cpp +++ b/src/pg_valve_maat.cpp @@ -114,6 +114,10 @@ int MaatService::maat_feather_start(void) ret |= Maat_set_feather_opt(feather, MAAT_OPT_PERF_ON, NULL, 0); ret |= Maat_set_feather_opt(feather, MAAT_OPT_INSTANCE_NAME, table_relate->instance_name, strlen(table_relate->instance_name)+1); + if(strlen(g_pgvalve_info.effective_range)>0) + { + ret |= Maat_set_feather_opt(feather, MAAT_OPT_ACCEPT_TAGS, g_pgvalve_info.effective_range, strlen(g_pgvalve_info.effective_range)+1); + } if(g_pgvalve_info.maat_source == MAAT_CONFIG_FILE) { ret |= Maat_set_feather_opt(feather, MAAT_OPT_FULL_CFG_DIR, table_relate->full_dir, strlen(table_relate->full_dir)+1); |
