hydra-queue-runner: Handle $HYDRA_DBI
[?]
Jun 17, 2015, 8:11 PM
CCHPYTCPXUHLSQWDBDVZNFTUSMRLW45DKYTVCU3XKYE3OU5RPUEQCDependencies
- [2]
24BMQDZAStart of single-process hydra-queue-runner - [3]
UQQ4IL55Add a error type for "unsupported system type" - [4]
ENXUSMSVMake concurrency more robust
Change contents
- replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 63
Connection() : pqxx::connection("dbname=hydra") { };Connection() : pqxx::connection(getFlags()) { };string getFlags(){string s = getEnv("HYDRA_DBI", "dbi:Pg:dbname=hydra;");string prefix = "dbi:Pg:";if (string(s, 0, prefix.size()) != prefix)throw Error("$HYDRA_DBI does not denote a PostgreSQL database");return concatStringsSep(" ", tokenizeString<Strings>(string(s, prefix.size()), ";"));}