Skip to content
Snippets Groups Projects
Commit eb3fbb00 authored by Javier Herrero's avatar Javier Herrero
Browse files

Fix bug when using more than one standalone worker

The worker_temp_directory for standalone workers was set to
/tmp/worker_${USER}.standalone. If two standalone workers were running
on the machine, they could overwrite each other’s files.
The fix include the process ID ($$ in Perl) in the directory name.
parent 6eb4e142
No related branches found
No related tags found
1 merge request!3Fix bug when using more than one standalone worker
......@@ -548,7 +548,7 @@ sub worker_temp_directory_name {
my $self = shift @_;
my $username = $ENV{'USER'};
my $worker_id = $self->worker ? $self->worker->dbID : 'standalone';
my $worker_id = $self->worker ? $self->worker->dbID : "standalone.$$";
return "/tmp/worker_${username}.${worker_id}/";
}
......
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