Commit ae2a4448 authored by Carla Guillen's avatar Carla Guillen
Browse files

adding perfdata_available.

parent 20509d76
......@@ -277,11 +277,11 @@ bool MariaDB::insertIntoJob(const std::string& job_id_string, const std::string&
if(!job_found_in_db) {
std::stringstream build_insert;
build_insert << "INSERT IGNORE INTO Accounting (job_id_string, user, nodes, aggregate_first_suffix, aggregate_last_suffix, batch_domain) VALUES (\'" << job_id_string << "\',\'";
build_insert << "INSERT IGNORE INTO Accounting (job_id_string, user, nodes, aggregate_first_suffix, aggregate_last_suffix, batch_domain, perfdata_available) VALUES (\'" << job_id_string << "\',\'";
build_insert << uid << "\',\'";
build_insert << number_nodes << "\',\'";
build_insert << suffix << "\',\'" << suffix << "\',\'";
build_insert << batch_domain << "\')";
build_insert << batch_domain << "\',\'1\')"; //After batch domain, perfdata_available=1
std::string query = build_insert.str();
LOG(debug)<< query;
......
......@@ -102,7 +102,8 @@ protected:
/** print error.
* Prints the mysql error message. If connection is gone (Error 2006) then we also close the connection.
* Please check with isInitialized() to initialize it again.
* String is NOT passed as reference to avoid having to pass always an empty string
* String is NOT passed as reference to avoid having to pass always an empty string when calling member
* function.
*/
void print_error(std::string slurm_job_id="");
......
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