maxpert / marmot

A distributed SQLite replicator built on top of NATS
https://maxpert.github.io/marmot/
MIT License
1.81k stars 41 forks source link

Adding locking mechanism for snapshots to avoid race conditions #67

Closed maxpert closed 1 year ago

maxpert commented 1 year ago

This PR adds lease based locking that will allow only one of the instances to create and upload a snapshot to the configured storage.