Initialize XmppConnection::is_client_ properly in the constructor
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
Medium
|
Ananth Suryanarayana |
Bug Description
XmppConnection:
This diff reflects the problem and the fix.
diff --git a/src/xmpp/
index c69b0d2..86e4253 100644
--- a/src/xmpp/
+++ b/src/xmpp/
@@ -47,7 +47,7 @@ XmppConnection:
- GetTaskInstance
+ GetTaskInstance
@@ -131,10 +131,10 @@ XmppSession *XmppConnection
// same value as before.
// Do not make this method virtual since it gets called from the constructor.
//
-int XmppConnection:
- if (is_client_)
- return 0;
+int XmppConnection:
+ if (is_client)
+ return 0;
IpAddress address = endpoint(
int thread_count = TaskScheduler:
if (address.is_v4()) {
diff --git a/src/xmpp/
index 39c07e0..d88b383 100644
--- a/src/xmpp/
+++ b/src/xmpp/
@@ -72,7 +72,7 @@ public:
std::string local_endpoint_
TcpServer *server() { return server_; }
XmppSession *CreateSession();
- int GetTaskInstance() const;
+ int GetTaskInstance() const { return GetTaskInstance
std::string ToString() const;
std::string ToUVEKey() const;
@@ -242,6 +242,7 @@ private:
XmppStanza
void LogKeepAliveSend();
+ int GetTaskInstance
boost:
boost:
tags: | added: contrail-control xmpp |
Review in progress for https:/ /review. opencontrail. org/21307
Submitter: Ananth Suryanarayana (<email address hidden>)