DragonFly commits List (threaded) for 2009-08
DragonFly BSD
DragonFly commits List (threaded) for 2009-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: hammer util: avoid running concurrent cleanups


From: Simon Schubert <corecode@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 9 Aug 2009 01:33:32 -0700 (PDT)

commit 5bd5f172451bff7c7aea85c80d7e60b825fcd742
Author: Simon Schubert <simon.schubert@epfl.ch>
Date:   Tue Aug 4 16:23:57 2009 +0200

    hammer util: avoid running concurrent cleanups
    
    If hammer cleanup gets called more frequently than the cleanup runs
    take, they build up, all trying to run in parallel.  Prevent this by
    locking the config file while cleanup is running.  If cleanup finds the
    config file locked for a PFS, it will skip processing.

Summary of changes:
 sbin/hammer/cmd_cleanup.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5bd5f172451bff7c7aea85c80d7e60b825fcd742


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]