mirror of
https://git.mirrors.martin98.com/https://github.com/ceph/ceph-csi.git
synced 2025-08-18 00:45:53 +08:00
cephfs: close dir
Signed-off-by: guoguangwu <guoguangwug@gmail.com> (cherry picked from commit 9574fa881bc6e2840ebb135d49fef0c1c5c84b9a)
This commit is contained in:
parent
9d83b50c3e
commit
47d17c9443
@ -393,6 +393,7 @@ func getBackingSnapshotRoot(
|
|||||||
|
|
||||||
return "", status.Errorf(codes.Internal, err.Error())
|
return "", status.Errorf(codes.Internal, err.Error())
|
||||||
}
|
}
|
||||||
|
defer dir.Close()
|
||||||
|
|
||||||
// Read the contents of <root path>/.snap directory into a string slice.
|
// Read the contents of <root path>/.snap directory into a string slice.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user