| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
- Use a sync.RWMutex for mutex locks.
- Use sync.RWMutex.RLock when reading from the downloaded map.
- Use sync.RWMutex.Lock when writing to the downloaded map.
|
|
|
|
|
|
| |
For storing the default db path. The `dbPath` gets changed during
tests. The `defaultDBPath` can be used to reset `dbPath` back to the
default db path through the `resetDBPath` function.
|
| |
|
|
|
|
| |
Always truncate file before writing.
|
|
|
|
| |
Writes database to disk.
|
| |
|
| |
|
|
|
|
| |
Refactor dbFile closing.
|
|
|
|
| |
Add `mutex` field to the FernDB struct.
|
|
|