|
From: <jgr...@us...> - 2003-11-11 04:33:48
|
Update of /cvsroot/popfile/engine/Classifier
In directory sc8-pr-cvs1:/tmp/cvs-serv1908/Classifier
Modified Files:
Bayes.pm
Log Message:
Enable BerkeleyDB locking subsystem and fix small bug to do with the color table
Index: Bayes.pm
===================================================================
RCS file: /cvsroot/popfile/engine/Classifier/Bayes.pm,v
retrieving revision 1.223
retrieving revision 1.224
diff -C2 -d -r1.223 -r1.224
*** Bayes.pm 10 Nov 2003 20:15:15 -0000 1.223
--- Bayes.pm 11 Nov 2003 04:33:43 -0000 1.224
***************
*** 542,546 ****
}
! $c = ($c+1) % $#{$self->{possible_colors__}};
}
--- 542,546 ----
}
! $c = ($c+1) % ($#{$self->{possible_colors__}}+1);
}
***************
*** 582,586 ****
-Cachesize => $self->config_( 'db_cache_size' ),
-Filename => $self->get_user_path_( $self->config_( 'corpus' ) . "/$bucket/table.db" ),
! -Flags => DB_CREATE; # PROFILE BLOCK STOP
# Check to see if the tie worked, if it failed then POPFile is about to fail
--- 582,586 ----
-Cachesize => $self->config_( 'db_cache_size' ),
-Filename => $self->get_user_path_( $self->config_( 'corpus' ) . "/$bucket/table.db" ),
! -Flags => DB_CREATE | DB_INIT_LOCK; # PROFILE BLOCK STOP
# Check to see if the tie worked, if it failed then POPFile is about to fail
|