Skip to content

chore(db_slice): Add object type to AddOrFind #5305

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

Conversation

BagritsevichStepan
Copy link
Contributor

@BagritsevichStepan BagritsevichStepan commented Jun 16, 2025

fixes #5271

This PR introduces an unsigned req_obj_type parameter to the AddOrFind method (with the main changes located in the db_slice files). It also verifies that all usages of AddOrFind across the codebase behave as expected.

@BagritsevichStepan BagritsevichStepan self-assigned this Jun 16, 2025
@BagritsevichStepan BagritsevichStepan force-pushed the db_slice/fix-add-or-find-method branch 2 times, most recently from 0d48c8b to 87cea6c Compare June 16, 2025 06:29
@BagritsevichStepan BagritsevichStepan force-pushed the db_slice/fix-add-or-find-method branch from 87cea6c to 950ce19 Compare June 16, 2025 11:31
@BorysTheDev
Copy link
Contributor

LGTM, but let's someone else review it too

Signed-off-by: Stepan Bagritsevich <[email protected]>
@BagritsevichStepan BagritsevichStepan force-pushed the db_slice/fix-add-or-find-method branch from d8fba3e to 5c70b96 Compare June 17, 2025 11:22
@BagritsevichStepan BagritsevichStepan merged commit 3eb333e into dragonflydb:main Jun 17, 2025
10 checks passed
@BagritsevichStepan BagritsevichStepan deleted the db_slice/fix-add-or-find-method branch June 17, 2025 17:53
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.

Test commands that use DbSlice::AddOrFind
3 participants