… | |
… | |
15 | # load the header of swapped-out maps. |
15 | # load the header of swapped-out maps. |
16 | # this is not a correctness issue, it simply saves diskspace |
16 | # this is not a correctness issue, it simply saves diskspace |
17 | # because old files will get cleaned up on reset time |
17 | # because old files will get cleaned up on reset time |
18 | Coro::Timer::sleep 1; |
18 | Coro::Timer::sleep 1; |
19 | |
19 | |
20 | my $files = Coro::AIO::aio_readdir cf::localdir . "/" . cf::tmpdir; |
20 | my $files = Coro::AIO::aio_readdir $cf::TMPDIR; |
21 | |
21 | |
22 | for my $map (@$files) { |
22 | for my $map (@$files) { |
23 | utf8::decode $map; |
23 | utf8::decode $map; |
24 | next if $map =~ /\.(?:pst|meta)$/; |
24 | next if $map =~ /\.(?:pst|meta)$/; |
25 | cf::map::find $map; |
25 | cf::map::find $map; |