[Lxr-commits] CVS: lxr/lib/LXR Index.pm,1.16,1.17
Brought to you by:
ajlittoz
From: Malcolm B. <mb...@us...> - 2009-05-14 21:13:21
|
Update of /cvsroot/lxr/lxr/lib/LXR In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv32729/lib/LXR Modified Files: Index.pm Log Message: Remote obsolete Index::DB backend that used NDBM storage. Now only Postgres, Mysql and Oracle are supported as backends. Add a commit method to the Index interface that flushes a transaction to disk and starts another one. Added appropriate calls from genxref to Index::commit Index: Index.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Index.pm,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- Index.pm 10 May 2009 11:54:29 -0000 1.16 +++ Index.pm 14 May 2009 21:13:07 -0000 1.17 @@ -30,9 +30,6 @@ if ($dbname =~ /^DBI:/i) { require LXR::Index::DBI; $index = new LXR::Index::DBI($dbname, @args); - } elsif ($dbname =~ /^DBM:/i) { - require LXR::Index::DB; - $index = new LXR::Index::DB($dbname, @args); } else { die "Can't find database, $dbname"; } @@ -144,6 +141,14 @@ return $decid; } +# Commit the last set of operations and start a new transaction +# If transactions are not supported, it's OK for this to be a no-op + +sub commit { + my ($self) = @_; + warn __PACKAGE__."::commit not implemented. Parameters @_"; +} + # This function should be called before parsing each new file, # if this is not done then too much memory will be used and # things will become very slow. |