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.13 by root, Wed Dec 5 11:08:34 2007 UTC vs.
Revision 1.16 by root, Sat Nov 29 15:04:28 2008 UTC

2 2
3our $SCHEDULE_INTERVAL = $cf::CFG{extractor_schedule_interval} || 3600; 3our $SCHEDULE_INTERVAL = $cf::CFG{extractor_schedule_interval} || 3600;
4 4
5use JSON::XS; 5use JSON::XS;
6 6
7my $db_mapinfo = cf::sync_job { cf::db_table "tag-mapinfo" }; # info/cache for maps 7our $db_mapinfo = cf::sync_job { cf::db_table "tag-mapinfo" }; # info/cache for maps
8my $db_target = cf::sync_job { cf::db_table "tag-target" }; # tag => maps 8our $db_target = cf::sync_job { cf::db_table "tag-target" }; # tag => maps
9 9
10sub remove_tag_target { 10sub remove_tag_target {
11 my ($txn, $tag, $target) = @_; 11 my ($txn, $tag, $target) = @_;
12 # - U O 12 # - U O
13 13
178 $Coro::current->prio (Coro::PRIO_MIN); 178 $Coro::current->prio (Coro::PRIO_MIN);
179 $Coro::current->desc ("map-tag scanner"); 179 $Coro::current->desc ("map-tag scanner");
180 reload; 180 reload;
181}; 181};
182 182
183cf::async { reload }; # force at startup 183cf::post_init {
184 $RELOAD_SCHEDULER->invoke (0); # force at startup
185};
184 186
185# find all objects with the given tag, or at least try to 187# find all objects with the given tag, or at least try to
186sub find($) { 188sub find($) {
187 my ($tag) = @_; 189 my ($tag) = @_;
188 190

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines