fix expensive move code path
parent
7cd40ea4eb
commit
d7ca2f8f9b
|
@ -72,6 +72,9 @@ sub formbuilder (@) { #{{{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Needed for fast_file_copy.
|
||||||
|
require IkiWiki::Render;
|
||||||
|
|
||||||
# Move the attachment into place.
|
# Move the attachment into place.
|
||||||
# Try to use a fast rename; fall back to copying.
|
# Try to use a fast rename; fall back to copying.
|
||||||
IkiWiki::prep_writefile($filename, $config{srcdir});
|
IkiWiki::prep_writefile($filename, $config{srcdir});
|
||||||
|
|
|
@ -180,7 +180,7 @@ sub scan ($) { #{{{
|
||||||
}
|
}
|
||||||
} #}}}
|
} #}}}
|
||||||
|
|
||||||
sub fast_file_copy ($$$$$) { #{{{
|
sub fast_file_copy (@) { #{{{
|
||||||
my $srcfile=shift;
|
my $srcfile=shift;
|
||||||
my $destfile=shift;
|
my $destfile=shift;
|
||||||
my $srcfd=shift;
|
my $srcfd=shift;
|
||||||
|
|
Loading…
Reference in New Issue