|
|
@ -192,7 +192,7 @@ func (pages *ContinuousDirtyPages) saveToStorage(ctx context.Context, buf []byte |
|
|
|
|
|
|
|
fileUrl := fmt.Sprintf("http://%s/%s", host, fileId) |
|
|
|
bufReader := bytes.NewReader(buf) |
|
|
|
uploadResult, err := operation.Upload(fileUrl, pages.f.Name, bufReader, false, "application/octet-stream", nil, auth) |
|
|
|
uploadResult, err := operation.Upload(fileUrl, pages.f.Name, bufReader, false, "", nil, auth) |
|
|
|
if err != nil { |
|
|
|
glog.V(0).Infof("upload data %v to %s: %v", pages.f.Name, fileUrl, err) |
|
|
|
return nil, fmt.Errorf("upload data: %v", err) |
|
|
|