Compare commits
1 commit
bf00d74a26
...
827e4398d7
| Author | SHA1 | Date | |
|---|---|---|---|
|
827e4398d7 |
2 changed files with 2 additions and 2 deletions
|
|
@ -16,6 +16,7 @@ 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,8 +6,7 @@ import (
|
|||
|
||||
func InitDB(conf Config, readonly bool) *badger.DB {
|
||||
opts := badger.DefaultOptions(conf.Path).
|
||||
WithReadOnly(readonly).
|
||||
WithBypassLockGuard(readonly)
|
||||
WithReadOnly(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