fix mutex

This commit is contained in:
shoopea committed 2021-11-14 18:19:37 +08:00
1 parent d2e5b34b64
commit b511eecec3
2 files changed
+4 -7

No files matched your search

-3
View File
@@ -78,9 +78,6 @@ func (b *Box) ZFSIsLastSnapshot(src Snapshot) (is bool, err error) {
return
}
b.zfs.M.Lock()
defer b.zfs.M.Unlock()
_, err = b.ZFSGetNextSnapshot(src)
if err != nil {
if err.Error() == "no snapshot" {
+4 -4
View File
@@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "c93aa20"
var buildstamp = "2021-11-14_10:14:42"
var commits = "25"
var version = "c93aa20-b25 - 2021-11-14_10:14:42"
var githash = "d2e5b34"
var buildstamp = "2021-11-14_10:19:30"
var commits = "26"
var version = "d2e5b34-b26 - 2021-11-14_10:19:30"