From b511eecec3434364a14587c15a3c09d33a20616a Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 14 Nov 2021 18:19:37 +0800 Subject: [PATCH] fix mutex --- box.go | 3 --- version.go | 8 ++++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/box.go b/box.go index 77199fa..ca9f606 100644 --- a/box.go +++ b/box.go @@ -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" { diff --git a/version.go b/version.go index 19f40ef..ca74912 100644 --- a/version.go +++ b/version.go @@ -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"