Skip to content

Commit e747a88

Browse files
authored
Add comments to SyncMetadata in pkg\ddc\jindo\metadata.go (#4546)
Signed-off-by: Rickhu <rickhu123@outlook.com>
1 parent ac33c1b commit e747a88

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/ddc/jindo/metadata.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ import (
2727
"k8s.io/client-go/util/retry"
2828
)
2929

30+
// SyncMetadata synchronizes metadata for the JindoEngine instance.
31+
// It first checks whether metadata synchronization is necessary using `shouldSyncMetadata`.
32+
// If synchronization is needed, it calls `syncMetadataInternal` to perform the update.
33+
// Execution time is tracked, and logs are recorded for debugging and monitoring purposes.
34+
//
35+
// Returns:
36+
// - err: An error if metadata synchronization fails or if the check for synchronization necessity encounters an issue.
3037
func (e *JindoEngine) SyncMetadata() (err error) {
3138
defer utils.TimeTrack(time.Now(), "JindoEngine.SyncMetadata", "name", e.name, "namespace", e.namespace)
3239
defer e.Log.V(1).Info("End to sync metadata", "name", e.name, "namespace", e.namespace)

0 commit comments

Comments
 (0)