Skip to content

Commit

Permalink
resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta committed Feb 3, 2023
1 parent 75a7327 commit 79a78fd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ddl/ingest/disk_root.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@
package ingest

import (
<<<<<<< HEAD
"github.com/pingcap/errors"
=======
"sync"

>>>>>>> f7d5db24b3 (ddl/ingest: add mutex to disk root (#41029))
lcom "github.com/pingcap/tidb/br/pkg/lightning/common"
"github.com/pingcap/tidb/sessionctx/variable"
"github.com/pingcap/tidb/util/logutil"
Expand Down Expand Up @@ -76,7 +72,7 @@ func (d *diskRootImpl) UpdateUsageAndQuota() error {
sz, err := lcom.GetStorageSize(d.path)
if err != nil {
logutil.BgLogger().Error(LitErrGetStorageQuota, zap.Error(err))
return errors.New(LitErrGetStorageQuota)
return err
}
maxQuota := mathutil.Min(variable.DDLDiskQuota.Load(), uint64(capacityThreshold*float64(sz.Capacity)))
d.mu.Lock()
Expand Down

0 comments on commit 79a78fd

Please sign in to comment.