--- loncom/debugging_tools/clean_db.pl 2007/04/03 00:59:45 1.4 +++ loncom/debugging_tools/clean_db.pl 2008/08/16 14:36:09 1.5 @@ -4,7 +4,7 @@ # # dump_db.pl - dump a GDBM database to standard output, unescaping if asked to. # -# $Id: clean_db.pl,v 1.4 2007/04/03 00:59:45 albertel Exp $ +# $Id: clean_db.pl,v 1.5 2008/08/16 14:36:09 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -65,13 +65,13 @@ if (! $dbref) { warn("Unable to tie to $fname"); exit; } -if (exists($dbref->{$key_to_remove}) { - delete($dbref->{$key}); +if (exists($dbref->{$key_to_remove})) { + delete($dbref->{$key_to_remove}); if ($fname =~ m|/nohist_[^/]*.db|) { exit; } my $hist=$fname; $hist=~s/\.db$/.hist/; open(HIST,">>$hist"); - print HIST ("D:".time.":$key\n"); + print HIST ("D:".time.":$key_to_remove\n"); close(HIST); } exit; 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.