[Lxr-commits] CVS: lxr/lib/LXR/Index Mysql.pm,1.38,1.39
Brought to you by:
ajlittoz
From: Andre-Littoz <ajl...@us...> - 2013-11-20 14:57:22
|
Update of /cvsroot/lxr/lxr/lib/LXR/Index In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv31758/lib/LXR/Index Modified Files: Mysql.pm Log Message: Index/Mysql.pm: needs a specific purgeall() function Index: Mysql.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Index/Mysql.pm,v retrieving revision 1.38 retrieving revision 1.39 diff -u -d -r1.38 -r1.39 --- Mysql.pm 17 Nov 2013 08:57:26 -0000 1.38 +++ Mysql.pm 20 Nov 2013 14:57:19 -0000 1.39 @@ -92,7 +92,7 @@ # End of variants $self->{'purge_all'} = $self->{dbh}->prepare - ( "call ${prefix}purgeall()" + ( "call ${prefix}PurgeAll()" ); # Variant U @@ -179,6 +179,15 @@ # return $declid; # } +sub purgeall { + my ($self) = @_; + + $self->{'purge_all'}->execute(); + # Variant U + $self->uniquecountersreset(0); + # End of variants +} + sub final_cleanup { my ($self) = @_; |