Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: DBInterface::get() return nullable strings #516

Merged
merged 7 commits into from
Aug 5, 2021

Conversation

qiluo-msft
Copy link
Contributor

No description provided.

@qiluo-msft qiluo-msft requested a review from arlakshm July 31, 2021 12:35
@qiluo-msft qiluo-msft changed the title Fix: DBInterface::get/get_all() return nullable strings Fix: DBInterface::get() return nullable strings Aug 1, 2021
arlakshm
arlakshm previously approved these changes Aug 2, 2021
Comment on lines 70 to 72
return value == "None" ? shared_ptr<string>() : make_shared<string>(value);
};
return blockable<std::string>(innerfunc, dbName, blocking);
return blockable<shared_ptr<string>>(innerfunc, dbName, blocking);
Copy link
Contributor

@kcudnik kcudnik Aug 2, 2021

Choose a reason for hiding this comment

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

inconsistent namespace usage, std::shared_ptr in function return value vs shared_ptr in function body #Resolved

Copy link
Contributor

Choose a reason for hiding this comment

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

same for std::string and string

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@yxieca
Copy link
Contributor

yxieca commented Aug 4, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft qiluo-msft merged commit e95a466 into sonic-net:master Aug 5, 2021
@qiluo-msft qiluo-msft deleted the qiluo/nullable branch August 5, 2021 00:51
judyjoseph pushed a commit that referenced this pull request Oct 4, 2021
Fix DBInterface::get() should return nullable strings, to align with redis-py behavior.
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.

5 participants