Commit 2964364f authored by Kirill Smelkov's avatar Kirill Smelkov

go/zodb/zodbtools: storUrl -> zurl

Similarly to zodb (632c9798 "go/zodb: storageURL -> zurl")
parent 6c162438
...@@ -104,7 +104,7 @@ func catobjMain(argv []string) { ...@@ -104,7 +104,7 @@ func catobjMain(argv []string) {
flags.Usage() flags.Usage()
prog.Exit(2) prog.Exit(2)
} }
storUrl := argv[0] zurl := argv[0]
if hashOnly && raw { if hashOnly && raw {
prog.Fatal("-hashonly & -raw are incompatible") prog.Fatal("-hashonly & -raw are incompatible")
...@@ -126,7 +126,7 @@ func catobjMain(argv []string) { ...@@ -126,7 +126,7 @@ func catobjMain(argv []string) {
ctx := context.Background() ctx := context.Background()
stor, err := zodb.OpenStorage(ctx, storUrl, &zodb.OpenOptions{ReadOnly: true}) stor, err := zodb.OpenStorage(ctx, zurl, &zodb.OpenOptions{ReadOnly: true})
if err != nil { if err != nil {
prog.Fatal(err) prog.Fatal(err)
} }
......
...@@ -258,7 +258,7 @@ func dumpMain(argv []string) { ...@@ -258,7 +258,7 @@ func dumpMain(argv []string) {
flags.Usage() flags.Usage()
prog.Exit(2) prog.Exit(2)
} }
storUrl := argv[0] zurl := argv[0]
if len(argv) > 1 { if len(argv) > 1 {
tidRange = argv[1] tidRange = argv[1]
...@@ -271,7 +271,7 @@ func dumpMain(argv []string) { ...@@ -271,7 +271,7 @@ func dumpMain(argv []string) {
ctx := context.Background() ctx := context.Background()
stor, err := zodb.OpenStorage(ctx, storUrl, &zodb.OpenOptions{ReadOnly: true}) stor, err := zodb.OpenStorage(ctx, zurl, &zodb.OpenOptions{ReadOnly: true})
if err != nil { if err != nil {
prog.Fatal(err) prog.Fatal(err)
} }
......
...@@ -118,11 +118,11 @@ func infoMain(argv []string) { ...@@ -118,11 +118,11 @@ func infoMain(argv []string) {
flags.Usage() flags.Usage()
prog.Exit(2) prog.Exit(2)
} }
storUrl := argv[0] zurl := argv[0]
ctx := context.Background() ctx := context.Background()
stor, err := zodb.OpenStorage(ctx, storUrl, &zodb.OpenOptions{ReadOnly: true}) stor, err := zodb.OpenStorage(ctx, zurl, &zodb.OpenOptions{ReadOnly: true})
if err != nil { if err != nil {
prog.Fatal(err) prog.Fatal(err)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment