test file_size with send to different shard
[cloudstore.git] / gearman / send_file.pl
index 93e5165..4c5820f 100755 (executable)
@@ -13,6 +13,7 @@ use Data::Dump qw(dump);
 
 use lib '/srv/cloudstore/lib';
 use CloudStore::API;
+use WarnColor;
 
 my $api = CloudStore::API->new('s1');
 
@@ -101,11 +102,5 @@ $worker->register_function( user_usage => sub {
 
 warn "$0 pid $$ waitng for jobs\n";
 
-if ( $ENV{SLICE} ) {
-       chroot $ENV{SLICE} || die "can't chroot $ENV{SLICE}: $!";
-} else {
-       warn "WARNING: not running under chroot SLICE=/hostname/sx\n";
-}
-
 $worker->work while 1;