ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.215 by root, Thu Feb 15 03:19:02 2007 UTC vs.
Revision 1.216 by root, Thu Feb 15 14:30:21 2007 UTC

785 } 785 }
786 } else { 786 } else {
787 aio_unlink $filename; 787 aio_unlink $filename;
788 aio_unlink "$filename.pst"; 788 aio_unlink "$filename.pst";
789 } 789 }
790
791 #d##TODO# nuke non .map-files if exist
792 if ($filename =~ s/\.map$//) {
793 aio_unlink $filename;
794 aio_unlink "$filename.pst";
795 }
796 } 790 }
797} 791}
798 792
799sub object_freezer_as_string { 793sub object_freezer_as_string {
800 my ($rdata, $objs) = @_; 794 my ($rdata, $objs) = @_;
806 800
807sub object_thawer_load { 801sub object_thawer_load {
808 my ($filename) = @_; 802 my ($filename) = @_;
809 803
810 my ($data, $av); 804 my ($data, $av);
811
812 #d#TODO remove .map if file does not exist
813 aio_stat $filename and $filename =~ s/\.map$//;
814 805
815 (aio_load $filename, $data) >= 0 806 (aio_load $filename, $data) >= 0
816 or return; 807 or return;
817 808
818 unless (aio_stat "$filename.pst") { 809 unless (aio_stat "$filename.pst") {
1305 my ($self) = @_; 1296 my ($self) = @_;
1306 1297
1307 utf8::encode (my $save = $self->save_path); 1298 utf8::encode (my $save = $self->save_path);
1308 IO::AIO::aioreq_pri 4; Coro::AIO::aio_unlink $save; 1299 IO::AIO::aioreq_pri 4; Coro::AIO::aio_unlink $save;
1309 IO::AIO::aioreq_pri 4; Coro::AIO::aio_unlink "$save.pst"; 1300 IO::AIO::aioreq_pri 4; Coro::AIO::aio_unlink "$save.pst";
1310
1311 #d#TODO remove .map and also nuke
1312 $save =~ s/\.map// or return;#d#
1313 IO::AIO::aioreq_pri 4; Coro::AIO::aio_unlink $save;#d#
1314 IO::AIO::aioreq_pri 4; Coro::AIO::aio_unlink "$save.pst";#d#
1315} 1301}
1316 1302
1317sub load_header_from($) { 1303sub load_header_from($) {
1318 my ($self, $path) = @_; 1304 my ($self, $path) = @_;
1319 1305

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines