| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d044e6f commit 9ca8e01
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -114,7 +114,7 @@ func (c *grpcStorageClient) OpenWriter(params *openWriterParams, opts ...storage | |||
| 114 | 114 | ||
| 115 | 115 | // If we are taking over an appendable object, send the first message here | |
| 116 | 116 | // to get the append offset. | |
| 117 | - if params.appendGen > 0 { | ||
| 117 | + if params.append && params.appendGen >= 0 { | ||
| 118 | 118 | // Create the buffer sender. This opens a stream and blocks until we | |
| 119 | 119 | // get a response that tells us what offset to write from. | |
| 120 | 120 | wbs, err := gw.newGRPCAppendTakeoverWriteBufferSender(params.ctx) | |
@@ -223,7 +223,7 @@ func newGRPCWriter(c *grpcStorageClient, s *settings, params *openWriterParams, | |||
| 223 | 223 | Appendable: proto.Bool(params.append), | |
| 224 | 224 | } | |
| 225 | 225 | var appendSpec *storagepb.AppendObjectSpec | |
| 226 | - if params.appendGen > 0 { | ||
| 226 | + if params.append && params.appendGen >= 0 { | ||
| 227 | 227 | appendSpec = &storagepb.AppendObjectSpec{ | |
| 228 | 228 | Bucket: bucketResourceName(globalProjectAlias, params.bucket), | |
| 229 | 229 | Object: params.attrs.Name, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments