summaryrefslogtreecommitdiff
path: root/src/lbdatafactory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lbdatafactory.cc')
-rw-r--r--src/lbdatafactory.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lbdatafactory.cc b/src/lbdatafactory.cc
index 16203b8..87ce746 100644
--- a/src/lbdatafactory.cc
+++ b/src/lbdatafactory.cc
@@ -22,7 +22,9 @@ using namespace std;
LBDataFactory::LBDataFactory(bool debug) :
- _debug(debug)
+ _debug(debug),
+ _lb_health(0),
+ _interface_index(0)
{
}
@@ -169,7 +171,7 @@ LBDataFactory::process_health(const string &key, const string &value)
if (value.empty() == false) {
LBData::InterfaceHealthIter iter = _lb_data._iface_health_coll.find(key);
if (iter == _lb_data._iface_health_coll.end()) {
- _lb_data._iface_health_coll.insert(pair<string,LBHealth>(value,LBHealth()));
+ _lb_data._iface_health_coll.insert(pair<string,LBHealth>(value,LBHealth(++_interface_index)));
}
_health_iter = _lb_data._iface_health_coll.find(value);
}