Skip to content

Commit

Permalink
Merge "Retry Db_AddColumnSync failure in CreateTables"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 10, 2016
2 parents 3f6fe7c + 68a84df commit 0d6090d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/analytics/db_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ bool DbHandler::CreateTables() {
columns.push_back(stat_col);

if (!dbif_->Db_AddColumnSync(col_list)) {
VIZD_ASSERT(0);
DB_LOG(ERROR, g_viz_constants.SYSTEM_OBJECT_TABLE <<
": Start Time Column Add FAILED");
return false;
}
}

Expand Down Expand Up @@ -267,7 +269,9 @@ bool DbHandler::CreateTables() {
columns.push_back(stat_col);

if (!dbif_->Db_AddColumnSync(col_list)) {
VIZD_ASSERT(0);
DB_LOG(ERROR, g_viz_constants.SYSTEM_OBJECT_TABLE <<
": TTL Column Add FAILED");
return false;
}
}

Expand Down

0 comments on commit 0d6090d

Please sign in to comment.