Skip to content

Commit

Permalink
fix getting hash from redis db
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytroxshevchuk committed Mar 10, 2021
1 parent f01fede commit a499586
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions common/configdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,11 @@ map<string, map<string, map<string, string>>> ConfigDBConnector_Native::get_conf
for (string key: keys)
{
size_t pos = key.find(TABLE_NAME_SEPARATOR);
string table_name = key.substr(0, pos);
string row;
if (pos != string::npos)
{
row = key.substr(pos + 1);
if (pos == string::npos) {
continue;
}
string table_name = key.substr(0, pos);
string row = key.substr(pos + 1);
auto const& entry = client.hgetall<map<string, string>>(key);

if (!entry.empty())
Expand Down

0 comments on commit a499586

Please sign in to comment.