OSDN Git Service

Merge branch 'jk/gc-pre-detach-under-hook'
authorJunio C Hamano <gitster@pobox.com>
Tue, 18 Jul 2017 19:48:10 +0000 (12:48 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Jul 2017 19:48:10 +0000 (12:48 -0700)
We run an early part of "git gc" that deals with refs before
daemonising (and not under lock) even when running a background
auto-gc, which caused multiple gc processes attempting to run the
early part at the same time.  This is now prevented by running the
early part also under the GC lock.

* jk/gc-pre-detach-under-hook:
  gc: run pre-detach operations under lock

1  2 
builtin/gc.c

diff --cc builtin/gc.c
Simple merge