Skip to content

Return null if put/deleteIf fails because no previous value exists#16

Merged
JulianVennen merged 1 commit intomasterfrom
storage-interface
Apr 8, 2025
Merged

Return null if put/deleteIf fails because no previous value exists#16
JulianVennen merged 1 commit intomasterfrom
storage-interface

Conversation

@JulianVennen
Copy link
Member

If no previous value exists for the key, but one was provided, the etcd client currently returns false. To match the previousValue parameter, it should return null instead. This PR fixes that and introduces improved tests that verify this behavior.

@JulianVennen JulianVennen requested a review from matthi4s April 8, 2025 10:49
@JulianVennen JulianVennen merged commit 169c82b into master Apr 8, 2025
5 checks passed
@JulianVennen JulianVennen deleted the storage-interface branch April 8, 2025 11:52
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.

2 participants