From f190aa4a7c7f1f922cc6239215d8cb5255beddcf Mon Sep 17 00:00:00 2001 From: Sylvain Baubeau Date: Thu, 2 Jul 2015 18:23:34 +0200 Subject: [PATCH] Refactor segment path concatenation code Signed-off-by: Sylvain Baubeau --- docs/storage/driver/swift/swift.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/storage/driver/swift/swift.go b/docs/storage/driver/swift/swift.go index 2f2e0c60a..b5f4fcd2f 100644 --- a/docs/storage/driver/swift/swift.go +++ b/docs/storage/driver/swift/swift.go @@ -251,7 +251,7 @@ func (d *driver) WriteStream(ctx context.Context, path string, offset int64, rea zeroBuf := make([]byte, d.ChunkSize) 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 {