Compare commits
2 commits
827e4398d7
...
bf00d74a26
| Author | SHA1 | Date | |
|---|---|---|---|
|
bf00d74a26 |
|||
|
825fabb64a |
2 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,6 @@ func StartMetadata(config NoCloudConfig, db *badger.DB, dryrun bool) error {
|
|||
|
||||
LoadNcCloudInDB(config, db)
|
||||
if !dryrun {
|
||||
fmt.Println("try to start metadata server")
|
||||
if err := service.Start("metadata@" + config.Name + ".service"); err != nil {
|
||||
return fmt.Errorf("failed to start metadata@%s: %w", config.Name, err)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@ import (
|
|||
|
||||
func InitDB(conf Config, readonly bool) *badger.DB {
|
||||
opts := badger.DefaultOptions(conf.Path).
|
||||
WithReadOnly(readonly)
|
||||
WithReadOnly(readonly).
|
||||
WithBypassLockGuard(readonly)
|
||||
opts.Logger = nil
|
||||
opts.ValueLogFileSize = 10 << 20 // 10 Mo par fichier vlog
|
||||
opts.NumMemtables = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue