( storage storage.ExternalStorage, cipher *backuppb.CipherInfo, clusterID uint64, prefix string, restoreID uint64, )
| 302 | } |
| 303 | |
| 304 | func NewLogStorageMetaManager( |
| 305 | storage storage.ExternalStorage, |
| 306 | cipher *backuppb.CipherInfo, |
| 307 | clusterID uint64, |
| 308 | prefix string, |
| 309 | restoreID uint64, |
| 310 | ) LogMetaManagerT { |
| 311 | return &StorageMetaManager[ |
| 312 | LogRestoreKeyType, LogRestoreValueType, LogRestoreValueMarshaled, CheckpointMetadataForLogRestore, |
| 313 | ]{ |
| 314 | storage: storage, |
| 315 | cipher: cipher, |
| 316 | clusterID: fmt.Sprintf("%d", clusterID), |
| 317 | taskName: fmt.Sprintf("%d/%s_%d", clusterID, prefix, restoreID), |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | func (manager *StorageMetaManager[K, SV, LV, M]) String() string { |
| 322 | return fmt.Sprintf("path[%s]", fmt.Sprintf(CheckpointRestoreDirFormat, manager.clusterID)) |
no outgoing calls