1. 06 1月, 2007 1 次提交
    • J
      builtin-prune: memory diet. · 16157b80
      Junio C Hamano 提交于
      Somehow we forgot to turn save_commit_buffer off while walking
      the reachable objects.  Releasing the memory for commit object
      data that we do not use matters for large projects (for example,
      about 90MB is saved while traversing linux-2.6 history).
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      16157b80
  2. 05 1月, 2007 10 次提交
  3. 04 1月, 2007 11 次提交
  4. 03 1月, 2007 4 次提交
    • J
      Fix infinite loop when deleting multiple packed refs. · 1084b845
      Junio C Hamano 提交于
      It was stupid to link the same element twice to lock_file_list
      and end up in a loop, so we certainly need a fix.
      
      But it is not like we are taking a lock on multiple files in
      this case.  It is just that we leave the linked element on the
      list even after commit_lock_file() successfully removes the
      cruft.
      
      We cannot remove the list element in commit_lock_file(); if we
      are interrupted in the middle of list manipulation, the call to
      remove_lock_file_on_signal() will happen with a broken list
      structure pointed by lock_file_list, which would cause the cruft
      to remain, so not removing the list element is the right thing
      to do.  Instead we should be reusing the element already on the
      list.
      
      There is already a code for that in lock_file() function in
      lockfile.c.  The code checks lk->next and the element is linked
      only when it is not already on the list -- which is incorrect
      for the last element on the list (which has NULL in its next
      field), but if you read the check as "is this element already on
      the list?" it actually makes sense.  We do not want to link it
      on the list again, nor we would want to set up signal/atexit
      over and over.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      1084b845
    • A
      send pack check for failure to send revisions list · 825cee7b
      Andy Whitcroft 提交于
      When passing the revisions list to pack-objects we do not check for
      errors nor short writes.  Introduce a new write_in_full which will
      handle short writes and report errors to the caller.  Use this to
      short cut the send on failure, allowing us to wait for and report
      the child in case the failure is its fault.
      Signed-off-by: NAndy Whitcroft <apw@shadowen.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      825cee7b
    • E
      instaweb: load Apache mime and dir modules if they are needed · 44a167b0
      Eric Wong 提交于
      I've noticed that Apache 2.2 on a Debian etch machine has
      these compiled as modules.
      
      Also set ServerName to avoid a warning at startup.
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      44a167b0
    • J
      fetch-pack: do not use lockfile structure on stack. · 54b9e022
      Junio C Hamano 提交于
      They are used in atexit() for clean-up, and you will be
      accessing unallocated memory at that point.
      
      See 31f584c2 for the fix for a similar problem.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      54b9e022
  5. 02 1月, 2007 9 次提交
  6. 01 1月, 2007 5 次提交