Skip to content

Commit 6242a03

Browse files
divyam234yuval-cloudinary
authored andcommitted
serve docker: add missing vfs-read-chunk-streams option in docker volume driver
1 parent 2242164 commit 6242a03

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cmd/serve/docker/options.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,15 @@ func getVFSOption(vfsOpt *vfscommon.Options, opt rc.Params, key string) (ok bool
251251
err = getFVarP(&vfsOpt.ReadAhead, opt, key)
252252
case "vfs-used-is-size":
253253
vfsOpt.UsedIsSize, err = opt.GetBool(key)
254+
case "vfs-read-chunk-streams":
255+
intVal, err = opt.GetInt64(key)
256+
if err == nil {
257+
if intVal >= 0 && intVal <= math.MaxInt {
258+
vfsOpt.ChunkStreams = int(intVal)
259+
} else {
260+
err = fmt.Errorf("key %q (%v) overflows int", key, intVal)
261+
}
262+
}
254263

255264
// unprefixed vfs options
256265
case "no-modtime":

0 commit comments

Comments
 (0)