Skip to content

Commit 905874d

Browse files
authored
[ycabled] move swsscommon API's from subroutines to call them exactly once per task_worker/thread (sonic-net#303)
This PR attempts for ycabled to have all swsscommon.Table and daemon_base.db_connect as just a single call in the thread instance for all task_workers For example all swsscommon calls to open Tables are moved as class object varables, which are reused when needed instead of opening the Table again in subroutines. self.config_db[asic_id] = daemon_base.db_connect("CONFIG_DB", namespace) This would help in avoiding unforeseen redis-errors Signed-off-by: vaibhav-dahiya [email protected] Description Motivation and Context How Has This Been Tested? Deploying changes on testbed and UT
1 parent 510d330 commit 905874d

File tree

5 files changed

+776
-435
lines changed

5 files changed

+776
-435
lines changed

0 commit comments

Comments
 (0)