* autopacking twice?
@ 2014-06-22 5:51 Michael S. Tsirkin
2014-06-22 15:22 ` Matthieu Moy
2014-06-23 10:57 ` Duy Nguyen
0 siblings, 2 replies; 4+ messages in thread
From: Michael S. Tsirkin @ 2014-06-22 5:51 UTC (permalink / raw)
To: git
I noticed this:
remote: Counting objects: 302, done.
remote: Compressing objects: 100% (195/195), done.
remote: Total 209 (delta 169), reused 15 (delta 14)
Receiving objects: 100% (209/209), 42.83 KiB | 0 bytes/s, done.
Resolving deltas: 100% (169/169), completed with 67 local objects.
From git://git.qemu.org/qemu
6baa963..427e175 master -> origin/master
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
First, rewinding head to replay your work on top of it...
Applying: vhost: block migration if backend does not log memory
Applying: vhost: fix resource leak in error handling
Applying: qapi/hmp: use 'backend' instead of 'device' with memory
backend
Applying: libqemustub: add more stubs for qemu-char
Applying: qtest: fix qtest for vhost-user
Applying: qtest: fix vhost-user-test unbalanced mutex locks
Applying: e1000: emulate auto-negotiation during external link status
change
Applying: e1000: improve auto-negotiation reporting via mii-tool
Applying: e1000: signal guest on successful link auto-negotiation
Applying: e1000: move e1000_autoneg_timer() to after set_ics()
Applying: e1000: factor out checking for auto-negotiation availability
Applying: fixup! libqemustub: add more stubs for qemu-char
Applying: qapi/string-output-visitor: fix human output
Applying: tests: add human format test for string output visitor
Applying: Revert "fixup! libqemustub: add more stubs for qemu-char"
Applying: fixup! libqemustub: add more stubs for qemu-char
warning: notes ref refs/notes/commits is invalid
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
Why did it auto-pack twice in a single pull?
None of the changes applied are very large.
Guess: auto-packing was started in background, did not
complete in time, and was restarted for the second time?
If true, some kind of lock file would be useful
to prevent this.
--
MST
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: autopacking twice?
2014-06-22 5:51 autopacking twice? Michael S. Tsirkin
@ 2014-06-22 15:22 ` Matthieu Moy
2014-06-22 16:43 ` Michael S. Tsirkin
2014-06-23 10:57 ` Duy Nguyen
1 sibling, 1 reply; 4+ messages in thread
From: Matthieu Moy @ 2014-06-22 15:22 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: git
"Michael S. Tsirkin" <mst@redhat.com> writes:
> Guess: auto-packing was started in background, did not
> complete in time, and was restarted for the second time?
Probably once for fetch, and another after rebase.
> If true, some kind of lock file would be useful
> to prevent this.
It is the case with recent versions of Git (>= 1.8.5). Which version are
you running?
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: autopacking twice?
2014-06-22 15:22 ` Matthieu Moy
@ 2014-06-22 16:43 ` Michael S. Tsirkin
0 siblings, 0 replies; 4+ messages in thread
From: Michael S. Tsirkin @ 2014-06-22 16:43 UTC (permalink / raw)
To: Matthieu Moy; +Cc: git
On Sun, Jun 22, 2014 at 05:22:32PM +0200, Matthieu Moy wrote:
> "Michael S. Tsirkin" <mst@redhat.com> writes:
>
> > Guess: auto-packing was started in background, did not
> > complete in time, and was restarted for the second time?
>
> Probably once for fetch, and another after rebase.
>
> > If true, some kind of lock file would be useful
> > to prevent this.
>
> It is the case with recent versions of Git (>= 1.8.5). Which version are
> you running?
Sorry, forgot to mention this:
$ git --version
git version 2.0.0.542.g41d13ef
this is git master with some patches by my own.
> --
> Matthieu Moy
> http://www-verimag.imag.fr/~moy/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: autopacking twice?
2014-06-22 5:51 autopacking twice? Michael S. Tsirkin
2014-06-22 15:22 ` Matthieu Moy
@ 2014-06-23 10:57 ` Duy Nguyen
1 sibling, 0 replies; 4+ messages in thread
From: Duy Nguyen @ 2014-06-23 10:57 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: Git Mailing List
On Sun, Jun 22, 2014 at 12:51 PM, Michael S. Tsirkin <mst@redhat.com> wrote:
> Why did it auto-pack twice in a single pull?
> None of the changes applied are very large.
>
> Guess: auto-packing was started in background, did not
> complete in time, and was restarted for the second time?
> If true, some kind of lock file would be useful
> to prevent this.
There is a lock, $GIT_DIR/gc.pid. However we are prepared to deal with
stale locks, and may have slipped somehow. The test is in
builtin/gc.c, lock_repo_for_gc(). Oh wait, we check for lock (and exit
if lock exists) _after_ we print the message (in cmd_gc). That might
be it.. If it so, maybe we can reorder some code to prevent this bogus
message, but has to be careful and do it before daemonizing..
--
Duy
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-23 10:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-22 5:51 autopacking twice? Michael S. Tsirkin
2014-06-22 15:22 ` Matthieu Moy
2014-06-22 16:43 ` Michael S. Tsirkin
2014-06-23 10:57 ` Duy Nguyen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).