diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-03-18 17:54:32 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-04-18 16:06:04 +0200 |
commit | c047317e400efc75b07aa0fff61ee1fcd794e74e (patch) | |
tree | b3d862f55d2d55d879407a9a75d5fdfa537fbe4b /include/git2 | |
parent | 29c4cb0965b67ad1ae7f640dfee67cf3ce358c26 (diff) | |
download | libgit2-c047317e400efc75b07aa0fff61ee1fcd794e74e.tar.gz |
config: make refresh atomic
Current code sets the active map to a new one and builds it whilst it's
active. This is a race condition with someone else trying to access the
same config.
Instead, let's build up our new map and swap the active and new one.
Diffstat (limited to 'include/git2')
0 files changed, 0 insertions, 0 deletions