Skip to content

Commit 1db62a6

Browse files
authored
add commets to ShouldSyncDatasetMounts in fluid/pkg/ddc/alluxio/ufs.go (#5723)
Signed-off-by: Xipingo <1184078694@qq.com>
1 parent d9b739d commit 1db62a6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

pkg/ddc/alluxio/ufs.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,16 @@ func (e *AlluxioEngine) checkIfRemountRequired(ufsToUpdate *utils.UFSToUpdate) {
202202
}
203203
}
204204

205+
// ShouldSyncDatasetMounts checks whether the dataset mounts need to be synchronized in the AlluxioEngine.
206+
// This function is primarily responsible for determining if there are any changes to the dataset's mount points
207+
// that require synchronization with the underlying Alluxio runtime, such as new mounts, removed mounts, or updates
208+
// to existing mount configurations.
209+
//
210+
// Parameters:
211+
//
212+
// Returns:
213+
// - should (bool): A boolean indicating whether a synchronization of dataset mounts is necessary.
214+
// - err (error): Returns an error if the check process fails, otherwise returns nil.
205215
func (e *AlluxioEngine) ShouldSyncDatasetMounts() (should bool, err error) {
206216
return false, nil
207217
}

0 commit comments

Comments
 (0)