Fix formatting in BTree Repacker
This commit is contained in:
parent
87ee948519
commit
ced12b62e0
@ -34,7 +34,7 @@ int main(int argc, char** argv) {
|
|||||||
|
|
||||||
newDb.setIODevice(std::move(File::open(outputFilename, IOMode::ReadWrite | IOMode::Truncate)));
|
newDb.setIODevice(std::move(File::open(outputFilename, IOMode::ReadWrite | IOMode::Truncate)));
|
||||||
newDb.open();
|
newDb.open();
|
||||||
coutf("Repacking %s...\n", bTreePath);
|
coutf("Repacking {}...\n", bTreePath);
|
||||||
//copy the data over
|
//copy the data over
|
||||||
unsigned count = 0;
|
unsigned count = 0;
|
||||||
db.forAll([&count, &newDb](ByteArray key, ByteArray data) {
|
db.forAll([&count, &newDb](ByteArray key, ByteArray data) {
|
||||||
@ -48,11 +48,11 @@ int main(int argc, char** argv) {
|
|||||||
newDb.commit();
|
newDb.commit();
|
||||||
newDb.close();
|
newDb.close();
|
||||||
|
|
||||||
coutf("Repacked BTree to %s in %ss\n", outputFilename, Time::monotonicTime() - startTime);
|
coutf("Repacked BTree to {} in {}s\n", outputFilename, Time::monotonicTime() - startTime);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
} catch (std::exception const& e) {
|
} catch (std::exception const& e) {
|
||||||
cerrf("Exception caught: %s\n", outputException(e, true));
|
cerrf("Exception caught: {}\n", outputException(e, true));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user