[PR #5994] [MERGED] server: fix race conditions during download #43231

Closed
opened 2026-04-24 22:54:02 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5994
Author: @bmizerany
Created: 7/26/2024
Status: Merged
Merged: 7/26/2024
Merged by: @bmizerany

Base: mainHead: bmizerany/fixpullraces


📝 Commits (1)

  • 0a33d62 server: fix race conditions during download

📊 Changes

1 file changed (+36 additions, -23 deletions)

View changed files

📝 server/download.go (+36 -23)

📄 Description

This fixes various data races scattered throughout the download/pull client where the client was accessing the download state concurrently.

This commit is mostly a hot-fix and will be replaced by a new client one day soon.

Also, remove the unnecessary opts argument from downloadChunk.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/5994 **Author:** [@bmizerany](https://github.com/bmizerany) **Created:** 7/26/2024 **Status:** ✅ Merged **Merged:** 7/26/2024 **Merged by:** [@bmizerany](https://github.com/bmizerany) **Base:** `main` ← **Head:** `bmizerany/fixpullraces` --- ### 📝 Commits (1) - [`0a33d62`](https://github.com/ollama/ollama/commit/0a33d62dace4f5dd35e6ba74d07c62db656fc4b5) server: fix race conditions during download ### 📊 Changes **1 file changed** (+36 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `server/download.go` (+36 -23) </details> ### 📄 Description This fixes various data races scattered throughout the download/pull client where the client was accessing the download state concurrently. This commit is mostly a hot-fix and will be replaced by a new client one day soon. Also, remove the unnecessary opts argument from downloadChunk. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-24 22:54:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#43231