Skip to content

Commit

Permalink
[syncd] Set modify redis flag in RedisSelectableChannel (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik authored Nov 1, 2020
1 parent 5df11f5 commit d978789
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion syncd/RedisSelectableChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ RedisSelectableChannel::RedisSelectableChannel(

m_asicState = std::make_shared<swss::ConsumerTable>(m_dbAsic.get(), asicStateTable);

m_asicState->setModifyRedis(m_modifyRedis);

/*
* At the end we cant use producer consumer concept since if one process
* will restart there may be something in the queue also "remove" from
* response queue will also trigger another "response".
*/

m_getResponse = std::make_shared<swss::ProducerTable>(m_dbAsic.get(), getResponseTable);
m_getResponse = std::make_shared<swss::ProducerTable>(m_dbAsic.get(), getResponseTable);
}

bool RedisSelectableChannel::empty()
Expand Down

0 comments on commit d978789

Please sign in to comment.