Skip to content

Commit 7937903

Browse files
author
Kong Deyu
committed
Add comments to queryCacheStatus in pkg/ddc/goosefs/cache.go
Signed-off-by: Kong Deyu <502024330024@smail.nju.edu.cn>
1 parent dabe1ed commit 7937903

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pkg/ddc/goosefs/cache.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ var (
3131
cachedPercentageFormat = "%.1f%%"
3232
)
3333

34-
// queryCacheStatus checks the cache status
34+
// queryCacheStatus checks the cache status of the GooseFS engine.
35+
// It retrieves the fsadmin report summary from GooseFS, parses the summary to
36+
// obtain cache states, and updates the dataset status accordingly. Additionally,
37+
// it retrieves the cache hit states and returns them along with the overall cache states.
3538
func (e *GooseFSEngine) queryCacheStatus() (states cacheStates, err error) {
3639
// get goosefs fsadmin report summary
3740
summary, err := e.GetReportSummary()

0 commit comments

Comments
 (0)