Browse Source

mongodb: remove ErrNoDocuments checking since it is only for creating single record, not for querying

pull/2680/head
chrislu 3 years ago
parent
commit
df51e0c042
  1. 4
      weed/filer/mongodb/mongodb_store.go

4
weed/filer/mongodb/mongodb_store.go

@ -200,10 +200,6 @@ func (store *MongodbStore) ListDirectoryEntries(ctx context.Context, dirPath uti
for cur.Next(ctx) {
var data Model
err = cur.Decode(&data)
if err == mongo.ErrNoDocuments {
err = nil
break
}
if err != nil {
break
}

Loading…
Cancel
Save