Store file content, not temporary file name
authorVincent Tondellier <tonton+hg@team1664.org>
Sat, 08 Jun 2013 17:07:07 +0200
changeset 20 169c73eb8881
parent 19 300b902b5461
child 21 fab315d8c7a8
Store file content, not temporary file name
bin/gearman_decode_worker.pl
--- a/bin/gearman_decode_worker.pl	Sun Apr 07 00:02:00 2013 +0200
+++ b/bin/gearman_decode_worker.pl	Sat Jun 08 17:07:07 2013 +0200
@@ -52,7 +52,7 @@
     $pjson->{client_info} = $jsonin->{params};
 
     my $uuidstr = $jsonin->{uuid};
-    $storage->store_dump($uuidstr, $file);
+    $storage->store_dump($uuidstr, slurp $file);
     $storage->store_processed_data($uuidstr, $pjson);
 
     return $json->encode($pjson);