feat: shed: add a --max-size flag to vlog2car
This commit is contained in:
parent
2e29b460d2
commit
ebeb16eda5
@ -34,12 +34,13 @@ var datastoreVlog2CarCmd = &cli.Command{
|
|||||||
Usage: "datastore prefix",
|
Usage: "datastore prefix",
|
||||||
Value: "/blocks/",
|
Value: "/blocks/",
|
||||||
},
|
},
|
||||||
|
&cli.Uint64Flag{Name: "max-size", Value: 32000},
|
||||||
},
|
},
|
||||||
ArgsUsage: "[vlog...]",
|
ArgsUsage: "[vlog...]",
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
ctx := cctx.Context
|
ctx := cctx.Context
|
||||||
|
|
||||||
maxSz := uint64(31 << 30)
|
maxSz := uint64(cctx.Uint64("max-size") << 20)
|
||||||
|
|
||||||
carb := &rawCarb{
|
carb := &rawCarb{
|
||||||
max: maxSz,
|
max: maxSz,
|
||||||
|
Loading…
Reference in New Issue
Block a user