prune-trace: preserve existing data

With this change, prune-trace checks for existing fsppilot/fspgroup
entries for each variant to be pruned, and skips the variant in this
case.  This safety measure can be switched off with --overwrite.

Change-Id: I7e758a9853a25685ca176cf1a1810523753cdd4a
This commit is contained in:
Horst Schirmeier
2014-08-28 11:32:40 +02:00
parent 2100001497
commit f98871dd5a
3 changed files with 64 additions and 23 deletions

View File

@ -13,11 +13,14 @@ protected:
std::string m_variants_sql;
public:
bool init(fail::Database *db,
void set_db(fail::Database *db) { this->db = db; }
bool init(
const std::vector<std::string>& variants,
const std::vector<std::string>& variants_exclude,
const std::vector<std::string>& benchmarks,
const std::vector<std::string>& benchmarks_exclude);
const std::vector<std::string>& benchmarks_exclude,
bool overwrite);
/**
* Callback function that can be used to add command line options