Skip to content

Conversation

@Danielle9897
Copy link
Member

@Danielle9897 Danielle9897 requested a review from haludi October 30, 2025 10:54
// If 'successful' is false -
// * The item was not deleted because the index didn't match (it was modified by someone else),
// * Or the item no longer existed at the time of deletion (it was already deleted).
Copy link

Choose a reason for hiding this comment

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

I would consider that the same as "the index didn't match," since the index of a non-existent entry is 0.
But it's not important, it's good to be explicit about it, like you did.
You can consider adding here that distinguishing between a case where the compare-exchange exists with a different index and a case where the compare-exchange does not exist can be determined by the returned object.
If the compare-exchange does not exist, this will be null.

Copy link
Member Author

Choose a reason for hiding this comment

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

added

@Danielle9897 Danielle9897 requested a review from haludi November 3, 2025 15:24
@ppekrol ppekrol merged commit ebda2cf into ravendb:main Nov 6, 2025
1 check failed
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