[CLEANUP] group PR_O_BALANCE_* bits into a checkable value
In preparation for newer balance algorithms, group the
sparse PR_O_BALANCE_* values into layer4 and layer7-based
algorithms. This will ease addition of newer algorithms.
diff --git a/src/cfgparse.c b/src/cfgparse.c
index e347cff..8e390d5 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -2513,11 +2513,11 @@
Warning("parsing %s : monitor-uri will be ignored for %s '%s'.\n",
file, proxy_type_str(curproxy), curproxy->id);
}
- if (curproxy->options & PR_O_BALANCE_UH) {
+ if (curproxy->options & PR_O_BALANCE_L7) {
curproxy->options &= ~PR_O_BALANCE;
curproxy->options |= PR_O_BALANCE_RR;
- Warning("parsing %s : URI hash will be ignored for %s '%s'. Falling back to round robin.\n",
+ Warning("parsing %s : Layer 7 hash not possible for %s '%s'. Falling back to round robin.\n",
file, proxy_type_str(curproxy), curproxy->id);
}
}