superfly / litefs

FUSE-based file system for replicating SQLite databases across a cluster of machines
Apache License 2.0
3.95k stars 95 forks source link

Make node ID ephemeral #398

Closed benbjohnson closed 1 year ago

benbjohnson commented 1 year ago

This pull request changes the node ID to be regenerated on startup instead of being persisted to disk. Persisted node IDs caused issues when a volume was cloned as two nodes would end up with the same ID and would not be able to connect to one another. This PR also removes the log prefix from all logging as it mostly cluttered the logs.

Fixes https://github.com/superfly/litefs/issues/361