You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to use clientv3.WithMaxModRev with clientv3.OpDelete.
Why is this needed?
I'd like to make deletes truly idempotent, by only deleting the value if it was the one read. For example, if a range of entries are read at revision R, it would be nice to only delete an entry if it's revision has not changed since R. I could use a transaction for this, but I am already using a txn to avoid errors.ErrTooManyRequests (see #18175).
Consider the following sequence of events:
The operation at (2) is retried, deleting KX@R3 by mistake!
More generally speaking it would be nice to support the rev filters on delete ops, so a key and revision combo can be specified for the delete.
I also have the use case where I would like to delete all the values before a specific revision for a given prefix. To do this right now, I have to list the keys with the revision filters, then delete each key. It would be much nicer to be able to just send a delete request for the prefix with the revision filters.
Thanks!
The text was updated successfully, but these errors were encountered:
What would you like to be added?
I would like to be able to use clientv3.WithMaxModRev with clientv3.OpDelete.
Why is this needed?
I'd like to make deletes truly idempotent, by only deleting the value if it was the one read. For example, if a range of entries are read at revision R, it would be nice to only delete an entry if it's revision has not changed since R. I could use a transaction for this, but I am already using a txn to avoid errors.ErrTooManyRequests (see #18175).
Consider the following sequence of events:
More generally speaking it would be nice to support the rev filters on delete ops, so a key and revision combo can be specified for the delete.
I also have the use case where I would like to delete all the values before a specific revision for a given prefix. To do this right now, I have to list the keys with the revision filters, then delete each key. It would be much nicer to be able to just send a delete request for the prefix with the revision filters.
Thanks!
The text was updated successfully, but these errors were encountered: