Skip to content
Snippets Groups Projects
Commit dc737440 authored by Tommi Virtanen's avatar Tommi Virtanen Committed by Jeromy Johnson
Browse files

fsrepo: Detect uninitialized repo by missing config file


Earlier, it also checked checked the leveldb directory. That part
added no crash safety to the application, and just hardcoded
assumptions about the datastore.

If anything, this should rely on the absolute last item created by
fsrepo.Init, and there should be fsync guarantees about ordering.

License: MIT
Signed-off-by: default avatarTommi Virtanen <tv@eagain.net>
parent 6996ce67
No related branches found
No related tags found
1 merge request!1New
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment