Skip to content

Commit 83f58c8

Browse files
committed
Add Notion to GetTieredStoreInfo in pkg\ddc\base\runtime.go.
Signed-off-by: JerryMLJ <13721512405@163.com>
1 parent 66f8f6f commit 83f58c8

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

pkg/ddc/base/runtime.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,9 @@ func WithTieredStore(tieredStore datav1alpha1.TieredStore) RuntimeInfoOption {
311311
return nil
312312
}
313313
}
314-
// GetTieredStoreInfo gets TieredStoreInfo from RuntimeInfo, the TieredStoreInfo is converted from datav1alpha1.TieredStore and stored in RuntimeInfo when building RuntimeInfo, so it can be used directly without conversion when getting it from RuntimeInfo.
315-
// The conversion logic is in WithTieredStore function.
316-
// If the length of Levels in datav1alpha1.TieredStore is 0, the Levels in TieredStoreInfo will also be an empty slice.
317-
// The TieredStoreInfo contains more structured information about the tiered store, such as the quota for each cache path, which is more convenient to use than the original datav1alpha1.TieredStore.
314+
// GetTieredStoreInfo returns the TieredStoreInfo associated with the RuntimeInfo.
315+
// The info is pre-converted from datav1alpha1.TieredStore for convenience (e.g., structured quotas).
316+
// If no levels are defined, the Levels slice in the returned struct will be nil.
318317
func (info *RuntimeInfo) GetTieredStoreInfo() TieredStoreInfo {
319318
return info.tieredstoreInfo
320319
}

0 commit comments

Comments
 (0)