Refactor segment path concatenation code
Signed-off-by: Sylvain Baubeau <sbaubeau@redhat.com>
This commit is contained in:
parent
91e17e10cd
commit
ed08d8d4e0
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ func (d *driver) WriteStream(ctx context.Context, path string, offset int64, rea
|
||||||
zeroBuf := make([]byte, d.ChunkSize)
|
zeroBuf := make([]byte, d.ChunkSize)
|
||||||
|
|
||||||
getSegment := func() string {
|
getSegment := func() string {
|
||||||
return d.swiftSegmentPath(path) + "/" + fmt.Sprintf("%016d", partNumber)
|
return fmt.Sprintf("%s/%016d", d.swiftSegmentPath(path), partNumber)
|
||||||
}
|
}
|
||||||
|
|
||||||
max := func(a int64, b int64) int64 {
|
max := func(a int64, b int64) int64 {
|
||||||
|
|
Loading…
Reference in a new issue