-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Redis population support class #4
base: master
Are you sure you want to change the base?
Conversation
7d65ace
to
675efa0
Compare
std::vector<std::pair<std::string, std::string> > fieldValues; | ||
std::string nei; | ||
nei = peer.peer_addr; | ||
fieldValues.push_back(std::make_pair("peer_addr", nei)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update this at last moment to avoid possible namespace overlap.
Server/src/RedisManager.cpp
Outdated
/*********************************************************************//** | ||
* Get singleton instance for class | ||
***********************************************************************/ | ||
RedisManager& RedisManager::getInstance() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, just want to keep it simple without passing reference to multiple places, as redis holds dedicated session meanwhile.
@@ -134,7 +134,8 @@ bool BMPReader::ReadIncomingMsg(BMPListener::ClientInfo *client) { | |||
peer_info_key = p_entry.peer_addr; | |||
peer_info_key += p_entry.peer_rd; | |||
|
|||
|
|||
if (bmp_type != parseBMP::TYPE_PEER_UP) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sql path has this, I removed it from master when bring up pipeline to avoid resolving kafka dependency issue. refer https://github.com/FengPan-Frank/sonic-bmp/pull/1/files#diff-3603581512f176e859579625d032262b922c76fa5fc3a44178d6e66ad1a176ea as initial commit.
139fc19
to
1ddd701
Compare
sonic-net/sonic-bmp#4, use public repo PR instead. |
1ddd701
to
a2d8adb
Compare
Add Redis population support class