diff options
| author | 刘畅 <[email protected]> | 2023-12-14 08:08:31 +0000 |
|---|---|---|
| committer | 刘畅 <[email protected]> | 2023-12-14 08:08:31 +0000 |
| commit | 908b0f3a8e6a492b6ba185cda47beae3a5aef39d (patch) | |
| tree | 2c2cc0dbefa23fae98afb6aef92385b6d624d264 | |
| parent | 271e61cddff9716b2bef577cc545e78e1829df33 (diff) | |
| parent | ac48bafa5732f7a7755ba73cc5a4b44a48dacf2e (diff) | |
Merge branch 'split-by_profile_ingore_priority' into 'rel'v1.3.13
split-by profile ignore priority
See merge request tango/shaping-engine!61
| -rw-r--r-- | shaping/src/shaper.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shaping/src/shaper.cpp b/shaping/src/shaper.cpp index a88fd58..6ae35f0 100644 --- a/shaping/src/shaper.cpp +++ b/shaping/src/shaper.cpp @@ -653,6 +653,10 @@ static int shaper_profile_is_priority_blocked(struct shaping_thread_ctx *ctx, st return 0; } + if (profile->type == PROFILE_TYPE_SPLIT_BY_LOCAL_HOST) {//split-by profile don't need to check priority + return 0; + } + if (curr_time_ms - profile->hash_node->last_hmget_ms[priority] < HMGET_REQUEST_INTERVAL_MS) {//don't send hmget command in 1s goto END; } |
