git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: What's cooking in git.git (Apr 2012, #06; Sun, 15)

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Apr 19, 2012, 07:02 UTC
Message-ID
<CACsJy8A6iLzW8ZtV97Fvat_e=Totzuh-hQ8mDyf9c5a=JC3u9Q@mail.gmail.com>
In-Reply-To
<4F8FB4A0.7090403@viscovery.net>
Hi,
I've been busy and have not had time to look into this yet...
2012/4/19 Johannes Sixt <j.sixt@viscovery.net>:
Show 13 quoted lines
> I don't see any mutual exclusion happening in this chain. Perhaps it is
> not needed, provided that the pread() call in get_data_from_pack is
> atomic. But our git_pread() from compat/pread.c, which we use on Windows,
> is not atomic.
>
> :-(
>
> I don't think that it is possible to make git_pread() atomic because it
> would have to be protected against all file accesses that can modify the
> file position.
>
> Is get_data_from_pack() the only function that accesses the pack data?
> Then we could add some mutual exclusion there.
I believe so. And index-pack only accesses the pack via pread, no other means.
-- 
Duy
Previous: Johannes SixtNext: Nguyen Thai Ngoc Duy
Message 10 of 19 in “What's cooking in git.git (Apr 2012, #06; Sun, 15)”
  1. Junio C HamanoApr 16, 2012
  2. Nelson Benitez LeonApr 16, 2012
  3. Junio C HamanoApr 16, 2012
  4. Nelson Benitez LeonApr 16, 2012
  5. Junio C HamanoApr 16, 2012
  6. Johannes SixtApr 18, 2012
  7. Ramsay JonesApr 18, 2012
  8. Johannes SixtApr 19, 2012
  9. Johannes SixtApr 19, 2012
  10. Nguyen Thai Ngoc DuyApr 19, 2012
  11. Nguyen Thai Ngoc DuyApr 19, 2012
  12. Erik Faye-LundApr 19, 2012
  13. Nguyen Thai Ngoc DuyApr 19, 2012
  14. Erik Faye-LundApr 19, 2012
  15. Nguyen Thai Ngoc DuyApr 19, 2012
  16. Johannes SixtApr 19, 2012
  17. Erik Faye-LundApr 19, 2012
  18. Nguyen Thai Ngoc DuyApr 21, 2012
  19. Nguyen Thai Ngoc DuyApr 21, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.