git: hammer util: avoid running concurrent cleanups

Simon Schubert corecode at crater.dragonflybsd.org
Sun Aug 9 01:34:06 PDT 2009


commit 5bd5f172451bff7c7aea85c80d7e60b825fcd742
Author: Simon Schubert <simon.schubert at 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





More information about the Commits mailing list