Open badger readonly on server/query commands
This commit is contained in:
parent
f5221bb03c
commit
be009f32c7
|
@ -362,7 +362,7 @@ func main() {
|
||||||
|
|
||||||
pending.WaitGroup.Wait()
|
pending.WaitGroup.Wait()
|
||||||
} else if *cmdOption == "query" {
|
} else if *cmdOption == "query" {
|
||||||
printDb, err := specializedstore.NewBadgerStore(*printDbOption, true, false, 100000)
|
printDb, err := specializedstore.NewBadgerStore(*printDbOption, true, true, 100000)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
@ -424,7 +424,7 @@ func main() {
|
||||||
|
|
||||||
log.Printf("finished querying %s", pathEntry)
|
log.Printf("finished querying %s", pathEntry)
|
||||||
} else if *cmdOption == "server" {
|
} else if *cmdOption == "server" {
|
||||||
printDb, err := specializedstore.NewBadgerStore(*printDbOption, true, false, 100000)
|
printDb, err := specializedstore.NewBadgerStore(*printDbOption, true, true, 100000)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue