MCPcopy
hub / github.com/pingcap/tidb / NewLogStorageMetaManager

Function NewLogStorageMetaManager

br/pkg/checkpoint/manager.go:304–319  ·  view source on GitHub ↗
(
	storage storage.ExternalStorage,
	cipher *backuppb.CipherInfo,
	clusterID uint64,
	prefix string,
	restoreID uint64,
)

Source from the content-addressed store, hash-verified

302}
303
304func 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
321func (manager *StorageMetaManager[K, SV, LV, M]) String() string {
322 return fmt.Sprintf("path[%s]", fmt.Sprintf(CheckpointRestoreDirFormat, manager.clusterID))

Calls

no outgoing calls