Assimilator: remove --noinsert option

please implement this in the project specific part if needed
This commit is contained in:
Christian Beer 2015-10-30 14:20:21 +01:00
parent d160c7fab5
commit d536505f7e
1 changed files with 1 additions and 8 deletions

View File

@ -46,7 +46,6 @@ using std::vector;
#define SLEEP_INTERVAL 10 #define SLEEP_INTERVAL 10
bool update_db = true; bool update_db = true;
bool noinsert = false;
int wu_id_modulus=0, wu_id_remainder=0; int wu_id_modulus=0, wu_id_remainder=0;
int sleep_interval = SLEEP_INTERVAL; int sleep_interval = SLEEP_INTERVAL;
int one_pass_N_WU=0; int one_pass_N_WU=0;
@ -66,8 +65,7 @@ void usage(char* name) {
" [--one_pass] Do one DB enumeration, then exit\n" " [--one_pass] Do one DB enumeration, then exit\n"
" [--one_pass_N_WU N] Process at most N jobs\n" " [--one_pass_N_WU N] Process at most N jobs\n"
" [-d | --debug_level N] Set verbosity level (1 to 4)\n" " [-d | --debug_level N] Set verbosity level (1 to 4)\n"
" [--dont_update_db] Don't update DB (for testing)\n" " [--dont_update_db] Don't update BOINC DB (for testing)\n"
" [--noinsert] Don't insert records in app-specific DB\n"
" [-h | --help] Show this\n" " [-h | --help] Show this\n"
" [-v | --version] Show version information\n" " [-v | --version] Show version information\n"
"\n", "\n",
@ -258,11 +256,6 @@ int main(int argc, char** argv) {
// your assimilator over and over again without affecting // your assimilator over and over again without affecting
// your project. // your project.
update_db = false; update_db = false;
} else if (is_arg(argv[i], "noinsert")) {
// This option is also for testing and is used to
// prevent the inserting of results into the *backend*
// (as opposed to the boinc) DB.
noinsert = true;
} else if (is_arg(argv[i], "mod")) { } else if (is_arg(argv[i], "mod")) {
if (!argv[++i]) { if (!argv[++i]) {
missing_argument(argv[0], argv[--i]); missing_argument(argv[0], argv[--i]);