Copilot suggestions fixed

This commit is contained in:
2026-03-11 20:26:17 +01:00
parent a23577d531
commit ef12326975
3 changed files with 245 additions and 3 deletions

View File

@@ -390,7 +390,10 @@ func ensureDataPathOffline(dataPath string) error {
}
return err
}
db, err := bolt.Open(dbPath, 0o600, &bolt.Options{Timeout: 100 * time.Millisecond})
db, err := bolt.Open(dbPath, 0o600, &bolt.Options{
Timeout: 100 * time.Millisecond,
ReadOnly: true,
})
if err != nil {
return fmt.Errorf("data path appears in use (metadata.db locked): %w", err)
}