Skip to content

Commit

Permalink
[ycabled] move swsscommon API's from subroutines to call them exactly…
Browse files Browse the repository at this point in the history
… once per task_worker/thread (#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 vdahiya@microsoft.com

Description
Motivation and Context
How Has This Been Tested?
Deploying changes on testbed and UT
  • Loading branch information
vdahiya12 committed Nov 7, 2022
1 parent 510d330 commit 905874d
Show file tree
Hide file tree
Showing 5 changed files with 776 additions and 435 deletions.
Loading

0 comments on commit 905874d

Please sign in to comment.