We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be425ed commit c709e3aCopy full SHA for c709e3a
common/configdb.h
@@ -105,8 +105,11 @@ class ConfigDBConnector_Native : public SonicV2Connector_Native
105
try:
106
(table, row) = key.split(self.TABLE_NAME_SEPARATOR, 1)
107
if table in self.handlers:
108
- client = self.get_redis_client(self.db_name)
109
- data = self.raw_to_typed(client.hgetall(key))
+ if item['data'] == 'del':
+ data = None
110
+ else:
111
+ client = self.get_redis_client(self.db_name)
112
+ data = self.raw_to_typed(client.hgetall(key))
113
if table in init_data and row in init_data[table]:
114
cache_hit = init_data[table][row] == data
115
del init_data[table][row]
0 commit comments