pgAgent commit: Fixed an issue - when two jobs starts at the same time, - Mailing list pgadmin-hackers

From Ashesh Vashi
Subject pgAgent commit: Fixed an issue - when two jobs starts at the same time,
Date
Msg-id E1k53au-0006yI-F8@gothos.postgresql.org
Whole thread Raw
List pgadmin-hackers
Fixed an issue - when two jobs starts at the same time, and sometime -
it ends up creating the same name as random string used as temporary
directory, and because - they were fetched at the same time, the
implemnetation does not find that directory exists.

In order to solve the issue - we will be using the job_id and step_id
as the prefix along with the random string while generating the
temporaty directory name. That will guarantee that the directory does
not exist at that time.

Reviewed: Neel Patel <neel.patel@enterprisedb.com>

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgagent.git;a=commitdiff;h=d4abe962a3131e48dd7f43542c5a91331b4aa92f
Author: Dave Page <dpage@pgadmin.org>

Modified Files
--------------
job.cpp | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)


pgadmin-hackers by date:

Previous
From: Akshay Joshi
Date:
Subject: Re: WIP: SQL Formatter
Next
From: Aditya Toshniwal
Date:
Subject: [pgAdmin][RM5526] Copy and paste multiline cells