mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-24 23:10:41 +02:00
use two flags: v.isCompacting and v.isCommitCompacting
This commit is contained in:
1 parent
b557faf175
commit
37ab8909b0
4 files changed
+6
-5
No files matched your search
@@ -54,7 +54,7 @@ func (v *Volume) isFileUnchanged(n *needle.Needle) bool {
|
||||
|
||||
// Destroy removes everything related to this volume
|
||||
func (v *Volume) Destroy() (err error) {
|
||||
if v.isCompacting {
|
||||
if v.isCompacting || v.isCommitCompacting {
|
||||
err = fmt.Errorf("volume %d is compacting", v.Id)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user