cephfs: close dir

Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
guangwu 2024-05-22 15:11:53 +08:00 committed by mergify[bot]
parent 822794c242
commit 9574fa881b

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.