Skip to content

[MultiDB] should use multiDB API#57

Merged
qiluo-msft merged 1 commit intosonic-net:masterfrom
dzhangalibaba:xdaemon
Jun 5, 2020
Merged

[MultiDB] should use multiDB API#57
qiluo-msft merged 1 commit intosonic-net:masterfrom
dzhangalibaba:xdaemon

Conversation

@dzhangalibaba
Copy link
Copy Markdown
Contributor

  • Should use new multiDB Connector in daemon base
  • This submodule needs updated with daemon_base changes together which is in sonic_buildinage

Signed-off-by: Dong Zhang d.zhang@alibaba-inc.com

@dzhangalibaba dzhangalibaba changed the title [MultiDB] shoule use multiDB API [MultiDB] should use multiDB API May 6, 2020
@dzhangalibaba
Copy link
Copy Markdown
Contributor Author

dzhangalibaba commented May 6, 2020

This PR and sonic-net/sonic-buildimage#4549 depends on each other.
the submodule needs updated with the merge of sonic-net/sonic-buildimage#4549 together.

@dzhangalibaba
Copy link
Copy Markdown
Contributor Author

@qiluo-msft

sys.exit(LEDUTIL_LOAD_ERROR)

# Open a handle to the Application database
appl_db = daemon_base.db_connect(swsscommon.APPL_DB)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use swsscommon.APPL_DB?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

swsscommon.APPL_DB is db id from swsscommon c++ library. Here we need a string "APPL_DB", For backward compatibility, we leave db id still there and not changed APPL_DB = "APPL_DB"

@dzhangalibaba
Copy link
Copy Markdown
Contributor Author

@qiluo-msft can we merge this first? then I'll update another PR "[MultiDB] daemon base should use multiDB DBConnector #4549" with this submodule update as well to avoid the dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants