cephfs: close dir

Signed-off-by: guoguangwu <guoguangwug@gmail.com>
(cherry picked from commit 9574fa881b)
This commit is contained in:
guangwu 2024-05-22 15:11:53 +08:00 committed by mergify[bot]
parent 9d83b50c3e
commit 47d17c9443

View File

@ -393,6 +393,7 @@ func getBackingSnapshotRoot(
return "", status.Errorf(codes.Internal, err.Error())
}
defer dir.Close()
// Read the contents of <root path>/.snap directory into a string slice.