Skip to content

Commit

Permalink
Merge pull request #683 from weiyanhua100/hash-debug-11-16
Browse files Browse the repository at this point in the history
fix:1.disable hash targent; 2.always print log info:hash target not s…
  • Loading branch information
ywc689 authored Nov 21, 2020
2 parents e93ade3 + 21ee88a commit d6ba7cd
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions tools/keepalived/keepalived/check/check_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,16 +442,18 @@ dump_vs(FILE *fp, const void *data)
conf_write(fp, " SYN proxy is %s", vs->syn_proxy ? "ON" : "OFF");
conf_write(fp, " expire_quiescent_conn is %s", vs->expire_quiescent_conn ? "ON" : "OFF");

switch (vs->hash_target) {
case IP_VS_SVC_F_SIP_HASH:
conf_write(fp, " hash target = sip");
break;
case IP_VS_SVC_F_QID_HASH:
conf_write(fp, " hash target = quicid");
break;
default:
conf_write(fp, " hash target not support");
break;
if (vs->hash_target) {
switch (vs->hash_target) {
case IP_VS_SVC_F_SIP_HASH:
conf_write(fp, " hash target = sip");
break;
case IP_VS_SVC_F_QID_HASH:
conf_write(fp, " hash target = quicid");
break;
default:
conf_write(fp, " hash target not support");
break;
}
}

conf_write(fp, " alive = %d", vs->alive);
Expand Down

0 comments on commit d6ba7cd

Please sign in to comment.