-
Notifications
You must be signed in to change notification settings - Fork 1.2k
This PR is to add comments to totalFileNumsInternal in pkg\ddc\alluxio\ufs_internal.go. #5882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -45,10 +45,12 @@ func (e *AlluxioEngine) usedStorageBytesInternal() (value int64, err error) { | |||||
| return | ||||||
| } | ||||||
|
|
||||||
| // freeStorageBytesInternal returns the number of bytes currently available in Alluxio storage. | ||||||
| func (e *AlluxioEngine) freeStorageBytesInternal() (value int64, err error) { | ||||||
| return | ||||||
| } | ||||||
|
|
||||||
| // totalStorageBytesInternal returns the total capacity in bytes of the Alluxio file system. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The term 'total capacity' in the comment is misleading. The implementation uses
Suggested change
|
||||||
| func (e *AlluxioEngine) totalStorageBytesInternal() (total int64, err error) { | ||||||
| podName, containerName := e.getMasterPodInfo() | ||||||
|
|
||||||
|
|
@@ -61,6 +63,8 @@ func (e *AlluxioEngine) totalStorageBytesInternal() (total int64, err error) { | |||||
| return | ||||||
| } | ||||||
|
|
||||||
| // totalFileNumsInternal returns the total number of files within the Alluxio file system. | ||||||
| // It queries the master pod via AlluxioFileUtils.GetFileCount. | ||||||
| func (e *AlluxioEngine) totalFileNumsInternal() (fileCount int64, err error) { | ||||||
| podName, containerName := e.getMasterPodInfo() | ||||||
|
|
||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment for
freeStorageBytesInternalis incomplete as it does not mention that the function is currently a placeholder returning(0, nil). For consistency with the neighboringusedStorageBytesInternalfunction, it should explicitly state its placeholder status to avoid misleading future developers.