mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix build
This commit is contained in:
parent
7c4a556940
commit
cb1e7aa27d
|
@ -2,9 +2,9 @@ package arangodb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"github.com/arangodb/go-driver"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/arangodb/go-driver"
|
|
||||||
"github.com/chrislusf/seaweedfs/weed/filer"
|
"github.com/chrislusf/seaweedfs/weed/filer"
|
||||||
|
|
||||||
"github.com/chrislusf/seaweedfs/weed/glog"
|
"github.com/chrislusf/seaweedfs/weed/glog"
|
||||||
|
@ -18,7 +18,7 @@ func (store *ArangodbStore) OnBucketCreation(bucket string) {
|
||||||
// create the collection && add to cache
|
// create the collection && add to cache
|
||||||
_, err := store.ensureBucket(timeout, bucket)
|
_, err := store.ensureBucket(timeout, bucket)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.V(0).Infof("bucket create %s : %w", bucket, err)
|
glog.Errorf("bucket create %s: %v", bucket, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func (store *ArangodbStore) OnBucketDeletion(bucket string) {
|
func (store *ArangodbStore) OnBucketDeletion(bucket string) {
|
||||||
|
@ -26,12 +26,12 @@ func (store *ArangodbStore) OnBucketDeletion(bucket string) {
|
||||||
defer cancel()
|
defer cancel()
|
||||||
collection, err := store.ensureBucket(timeout, bucket)
|
collection, err := store.ensureBucket(timeout, bucket)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.V(0).Infof("bucket delete %s : %w", bucket, err)
|
glog.Errorf("bucket delete %s: %v", bucket, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = collection.Remove(timeout)
|
err = collection.Remove(timeout)
|
||||||
if err != nil && !driver.IsNotFound(err) {
|
if err != nil && !driver.IsNotFound(err) {
|
||||||
glog.V(0).Infof("bucket delete %s : %w", bucket, err)
|
glog.Errorf("bucket delete %s: %v", bucket, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue