ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/map-tags.ext
(Generate patch)

Comparing deliantra/server/ext/map-tags.ext (file contents):
Revision 1.24 by root, Thu Apr 29 08:13:50 2010 UTC vs.
Revision 1.27 by root, Wed May 5 23:23:29 2010 UTC

70 70
71 # we don't actually care if it succeeds or not, as we 71 # we don't actually care if it succeeds or not, as we
72 # will just retry an hour later 72 # will just retry an hour later
73 BDB::db_txn_finish $txn; 73 BDB::db_txn_finish $txn;
74 74
75 warn "tag-updated $file (= $key) <@tags>\n" 75 cf::debug "tag-updated $file (= $key) <@tags>\n"
76 if @tags; 76 if @tags;
77} 77}
78 78
79sub scan_static { 79sub scan_static {
80 my $maps = cf::map::static_maps; 80 my $maps = cf::map::static_maps;
126 126
127 # now hunt for all per-player maps 127 # now hunt for all per-player maps
128# scan_dir $cf::PLAYERDIR 128# scan_dir $cf::PLAYERDIR
129# for my $login (@{ cf::player::list_logins or [] }) { 129# for my $login (@{ cf::player::list_logins or [] }) {
130# for my $path (@{ cf::player::maps $login or [] }) { 130# for my $path (@{ cf::player::maps $login or [] }) {
131# cf::cede_to_tick;
132# 131#
133# $path =~ /^~[^\/]+(\/.*)$/ 132# $path =~ /^~[^\/]+(\/.*)$/
134# or next; # doh 133# or next; # doh
135# 134#
136# my $base = cf::map::find $1; 135# my $base = cf::map::find $1;
149# delete $map->{deny_reset}; 148# delete $map->{deny_reset};
150# } 149# }
151# } 150# }
152# } 151# }
153 152
154 warn sprintf "map-tag scan finished (%fs)\n", AE::time - $start; 153 cf::info sprintf "map-tag scan finished (%fs)\n", AE::time - $start;
155} 154}
156 155
157our $RELOAD_SCHEDULER = cf::periodic $SCHEDULE_INTERVAL, Coro::unblock_sub { 156our $RELOAD_SCHEDULER = cf::periodic $SCHEDULE_INTERVAL, Coro::unblock_sub {
158 $Coro::current->prio (Coro::PRIO_MIN); 157 $Coro::current->prio (Coro::PRIO_MIN);
159 $Coro::current->desc ("map-tag scanner"); 158 $Coro::current->desc ("map-tag scanner");
183 my $guard = cf::lock_acquire "map-tags::reload"; 182 my $guard = cf::lock_acquire "map-tags::reload";
184 183
185 BDB::db_close $db_target; 184 BDB::db_close $db_target;
186 BDB::db_close $db_mapinfo; 185 BDB::db_close $db_mapinfo;
187} 186}
187

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines