Method
SetStorage
(ctx context.Context, backend *backuppb.StorageBackend, opts *storage.ExternalStorageOptions)
Source from the content-addressed store, hash-verified
| 436 | } |
| 437 | |
| 438 | func (rc *LogClient) SetStorage(ctx context.Context, backend *backuppb.StorageBackend, opts *storage.ExternalStorageOptions) error { |
| 439 | var err error |
| 440 | rc.storage, err = storage.New(ctx, backend, opts) |
| 441 | if err != nil { |
| 442 | return errors.Trace(err) |
| 443 | } |
| 444 | return nil |
| 445 | } |
| 446 | |
| 447 | func (rc *LogClient) SetCurrentTS(ts uint64) error { |
| 448 | if ts == 0 { |