How to make multiple writes in a transaction
Guide to making transactional writes
txn to wrap multiple requests into one transaction:
etcdctl --endpoints=$ENDPOINTS put user1 bad etcdctl --endpoints=$ENDPOINTS txn --interactive compares: value("user1") = "bad" success requests (get, put, delete): del user1 failure requests (get, put, delete): put user1 good
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified October 13, 2021: Added 'How to make multiple writes in a transaction' page under 'Tutorials' section and updated the Demo page (#517) (2223e6b)