DragonFly-2.3.0.359.g8debe master usr.bin/undo undo.c

Simon Schubert corecode at crater.dragonflybsd.org
Fri Mar 6 06:52:17 PST 2009


commit 8debe47178fd964f1e543d3b669a6f0292f0f07c
Author: Simon Schubert <simon.schubert at epfl.ch>
Date:   Fri Mar 6 15:41:25 2009 +0100

    undo: don't run diff between last tid and tid_max
    
    Diff works on pairs of tids and not on only the first tid passed in to
    the generator.  As a result, there is nothing to do for the last pair of
    tids: the last tid and max_tid refer to the same version.  Avoid running
    the generator in this case.

Summary of changes:
 usr.bin/undo/undo.c |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8debe47178fd964f1e543d3b669a6f0292f0f07c


-- 
DragonFly BSD source repository





More information about the Commits mailing list