Commit f55b0505 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Process::db() is found via its Worker

parent 955080db
......@@ -381,8 +381,7 @@ sub execute_writes {
sub db {
my $self = shift;
$self->{'_db'} = shift if(@_);
return $self->{'_db'};
return $self->worker->adaptor && $self->worker->adaptor->db(@_);
}
......
......@@ -644,7 +644,6 @@ sub specialize_and_compile_wrapper {
my $runnable_object = $current_analysis->get_compiled_module_name->new($self->debug, $current_analysis->language, $current_analysis->module) # Only GuestProcess will read the arguments
or die "Unknown compilation error";
$runnable_object->db( $self->adaptor->db );
$runnable_object->worker( $self );
$self->runnable_object( $runnable_object );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment