leave the update function early if we have not updated anything.
git-svn-id: svn://10.0.0.236/trunk@108323 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
960160100e
commit
eaa7acdb9f
@ -134,7 +134,7 @@ use TreeData;
|
||||
use VCDisplay;
|
||||
|
||||
|
||||
$VERSION = ( qw $Revision: 1.17 $ )[1];
|
||||
$VERSION = ( qw $Revision: 1.18 $ )[1];
|
||||
|
||||
@ISA = qw(TinderDB::BasicTxtDB);
|
||||
|
||||
@ -449,6 +449,9 @@ sub apply_db_updates {
|
||||
} # foreach $line
|
||||
} # any updates
|
||||
|
||||
($num_updates) ||
|
||||
return 0;
|
||||
|
||||
$METADATA{$tree}{'updates_since_trim'} += $num_updates;
|
||||
|
||||
if ( ($METADATA{$tree}{'updates_since_trim'} >
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user