From dd908c2ee2311204b7b313f12d5f7c11fd6a4e30 Mon Sep 17 00:00:00 2001 From: abdosi <58047199+abdosi@users.noreply.github.com> Date: Wed, 2 Sep 2020 18:09:03 -0700 Subject: [PATCH] [sonic-swsscommon] submodule update with commit's (#5300) [schema] Make schema header support C project (#373) Removed DB specific get api's from Selectable class (#378) With the change as part of #378 caclmgrd need to be updated to use new client side Get API to access namespace. Signed-off-by: Abhishek Dosi --- files/image_config/caclmgrd/caclmgrd | 8 +++++--- src/sonic-swss-common | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/files/image_config/caclmgrd/caclmgrd b/files/image_config/caclmgrd/caclmgrd index 6b1cd6cc49ad..ffeb23ca9d16 100755 --- a/files/image_config/caclmgrd/caclmgrd +++ b/files/image_config/caclmgrd/caclmgrd @@ -476,12 +476,14 @@ class ControlPlaneAclManager(object): # Loop on select to see if any event happen on config db of any namespace while True: - (state, c) = sel.select(SELECT_TIMEOUT_MS) + (state, selectableObj) = sel.select(SELECT_TIMEOUT_MS) # Continue if select is timeout or selectable object is not return if state != swsscommon.Select.OBJECT: continue - # Get the corresponding namespace from selectable object - namespace = c.getDbNamespace() + # Get the redisselect object from selectable object + redisSelectObj = swsscommon.CastSelectableToRedisSelectObj(selectableObj) + # Get the corresponding namespace from redisselect db connector object + namespace = redisSelectObj.getDbConnector().getNamespace() # Pop data of both Subscriber Table object of namespace that got config db acl table event for table in config_db_subscriber_table_map[namespace]: table.pop() diff --git a/src/sonic-swss-common b/src/sonic-swss-common index 49a7c9d87e36..200f2b0a2377 160000 --- a/src/sonic-swss-common +++ b/src/sonic-swss-common @@ -1 +1 @@ -Subproject commit 49a7c9d87e364e2ebad1072ad1eb185ce85ac4de +Subproject commit 200f2b0a23774e64e0a624fc19d220b3db064d28