mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-27 16:50:23 +00:00
cephfs: close dir
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
(cherry picked from commit 9574fa881b
)
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…
Reference in New Issue
Block a user