Henry Lyne (henrylyne) wrote in changelog,
Henry Lyne
henrylyne
changelog

[livejournal] r15611: Restore missing subroutine.

Committer: henrylyne
Restore missing subroutine.

U   trunk/bin/worker/sysban-gm
Modified: trunk/bin/worker/sysban-gm
===================================================================
--- trunk/bin/worker/sysban-gm	2009-08-18 08:44:02 UTC (rev 15610)
+++ trunk/bin/worker/sysban-gm	2009-08-18 18:48:17 UTC (rev 15611)
@@ -17,4 +17,17 @@
 sub declare { [ 'sysban_populate' => \&sysban_populate ] }
 sub work    {}
 
+sub sysban_populate {
+    my $job = shift;
+    my $args = Storable::thaw($job->arg);
+
+    # what type of ban are we loading
+    my $what = $args->{what};
+
+    # empty hashref, we'll populate the caller from this
+    my $data = {};
+    my $res = LJ::_db_sysban_populate($data, $what);
+
+    return Storable::nfreeze($res);
+}
 1;

Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments