Skip to content

Commit

Permalink
dbcopy: misc fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
franku committed Jan 31, 2020
1 parent 1f5af22 commit 428e5d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/src/dird/dbcopy/database_import_mysql.cc
Expand Up @@ -151,7 +151,9 @@ void DatabaseImportMysql::ExportTo(DatabaseExport& exporter)
exporter.CopyEnd();

stopwatch.Stop();
#if 0
stopwatch.PrintDurationToStdout();
#endif
}

void DatabaseImportMysql::CompareWith(DatabaseExport& exporter)
Expand Down Expand Up @@ -198,7 +200,7 @@ void DatabaseImportMysql::FillRowWithDatabaseResult(ResultHandlerContext* r,
"Number of database fields does not match description");
}

RowData& row_data = r->row_data;
RowData& row_data = r->row_data;

if (r->is_restore_object) {
std::size_t field_index_longblob = fields - 1;
Expand Down
2 changes: 1 addition & 1 deletion core/src/dird/dbcopy/dbcopy.cc
Expand Up @@ -142,7 +142,7 @@ class DbCopy {
bool options_error{false};
int argument_count{};

while ((c = getopt(argc, argv, "cl:?")) != -1 && !options_error) {
while ((c = getopt(argc, argv, "c:l:?")) != -1 && !options_error) {
switch (c) {
case 'c':
configpath_ = optarg;
Expand Down

0 comments on commit 428e5d5

Please sign in to comment.