Browse Source

filer mongo change func update to insert entry

pull/1280/head
bukton 5 years ago
parent
commit
082f079ead
  1. 2
      weed/filer2/mongodb/mongodb_store.go

2
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) { 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) { func (store *MongodbStore) FindEntry(ctx context.Context, fullpath util.FullPath) (entry *filer2.Entry, err error) {

Loading…
Cancel
Save