20 #include <ripple/app/rdb/Vacuum.h>
21 #include <boost/format.hpp>
30 uintmax_t
const dbSize = file_size(dbPath);
31 assert(dbSize !=
static_cast<uintmax_t
>(-1));
33 if (
auto available = space(dbPath.parent_path()).available;
36 std::cerr <<
"The database filesystem must have at least as "
37 "much free space as the size of "
38 << dbPath.string() <<
", which is " << dbSize
39 <<
" bytes. Only " <<
available <<
" bytes are available.\n";
45 auto& session = txnDB->getSession();
52 session <<
"PRAGMA page_size;", soci::into(pageSize);
60 session <<
"PRAGMA page_size;", soci::into(pageSize);