diff options
| author | bukton <buk_ton2@hotmail.com> | 2020-04-19 11:08:10 +0700 |
|---|---|---|
| committer | bukton <buk_ton2@hotmail.com> | 2020-04-19 11:08:10 +0700 |
| commit | 082f079ead5632742ce470548726b040f5cd5e24 (patch) | |
| tree | e2b05c4ee85a13b1a74fb2c9d7687f40d2bccad1 | |
| parent | 8c58b0d01764ad7df4a05f5d431657818804f9db (diff) | |
| download | seaweedfs-082f079ead5632742ce470548726b040f5cd5e24.tar.xz seaweedfs-082f079ead5632742ce470548726b040f5cd5e24.zip | |
filer mongo change func update to insert entry
| -rw-r--r-- | weed/filer2/mongodb/mongodb_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer2/mongodb/mongodb_store.go b/weed/filer2/mongodb/mongodb_store.go index b9fbd7fa2..965634947 100644 --- a/weed/filer2/mongodb/mongodb_store.go +++ b/weed/filer2/mongodb/mongodb_store.go @@ -78,7 +78,7 @@ func (store *MongodbStore) InsertEntry(ctx context.Context, entry *filer2.Entry) } func (store *MongodbStore) UpdateEntry(ctx context.Context, entry *filer2.Entry) (err error) { - return store.UpdateEntry(ctx, entry) + return store.InsertEntry(ctx, entry) } func (store *MongodbStore) FindEntry(ctx context.Context, fullpath util.FullPath) (entry *filer2.Entry, err error) { |
