Skip to content

Table class supports redis pipeline#181

Merged
qiluo-msft merged 1 commit intosonic-net:masterfrom
qiluo-msft:qiluo/pipelinetable
Jan 26, 2018
Merged

Table class supports redis pipeline#181
qiluo-msft merged 1 commit intosonic-net:masterfrom
qiluo-msft:qiluo/pipelinetable

Conversation

@qiluo-msft
Copy link
Copy Markdown
Contributor

No description provided.

DBConnector db(TEST_VIEW, "localhost", 6379, 0);
Table t(&db, tableName);
RedisPipeline pipeline(&db);
Table t(&pipeline, tableName, DEFAULT_TABLE_NAME_SEPARATOR, true);
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.

@sihuihan88 , you need follow this example to enable redispipeline in your scenario.

Table(DBConnector *db, std::string tableName, std::string tableSeparator = DEFAULT_TABLE_NAME_SEPARATOR);
virtual ~Table() { }
Table(RedisPipeline *pipeline, std::string tableName, std::string tableSeparator, bool buffered);
virtual ~Table();
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 remove the implementation for the Table deconstructor?

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.

Actually not removed. I implemented with non-empty logic in .cpp file

@qiluo-msft qiluo-msft merged commit 9b00920 into sonic-net:master Jan 26, 2018
@qiluo-msft qiluo-msft deleted the qiluo/pipelinetable branch January 26, 2018 19:04
prgeor pushed a commit to prgeor/sonic-swss-common that referenced this pull request Feb 27, 2025
Testbeds using the mux simulator will see lots of error messages in the syslog since many y_cable methods are not mocked for the mux simulator. This PR prepares `y_cable.py` to use mocked methods that will be introduced in a future sonic-mgmt PR.

Signed-off-by: Lawrence Lee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants