Log whether `io_uring` is used/configured
This commit is contained in:
parent
f5394db6b1
commit
d163f56abf
|
@ -656,6 +656,20 @@ void ServiceSetup::printDatabases()
|
|||
cerr << Phrases::SubMessage << "AUR (" << config.aur.packageCount() << " packages cached)" << Phrases::End;
|
||||
}
|
||||
|
||||
void ServiceSetup::printIoUringUsage()
|
||||
{
|
||||
cout << Phrases::InfoMessage << "Using io_uring: ";
|
||||
#ifdef BOOST_ASIO_HAS_IO_URING
|
||||
cout << "yes";
|
||||
#ifdef BOOST_ASIO_DISABLE_EPOLL
|
||||
cout << ", epoll disabled";
|
||||
#endif
|
||||
#else
|
||||
cout << "no";
|
||||
#endif
|
||||
cout << Phrases::End;
|
||||
}
|
||||
|
||||
std::string_view ServiceSetup::cacheFilePath() const
|
||||
{
|
||||
return "cache-v" LIBREPOMGR_CACHE_VERSION ".bin";
|
||||
|
@ -737,6 +751,7 @@ int ServiceSetup::run()
|
|||
try {
|
||||
#endif
|
||||
printLimits();
|
||||
printIoUringUsage();
|
||||
loadConfigFiles(true);
|
||||
config.discardDatabases();
|
||||
config.loadAllPackages(building.loadFilesDbs, building.forceLoadingDbs);
|
||||
|
|
|
@ -50,6 +50,7 @@ struct LIBREPOMGR_EXPORT ServiceSetup : public LibPkg::Lockable {
|
|||
void loadConfigFiles(bool doFirstTimeSetup);
|
||||
void printLimits();
|
||||
void printDatabases();
|
||||
void printIoUringUsage();
|
||||
std::string_view cacheFilePath() const;
|
||||
void restoreState();
|
||||
std::size_t saveState();
|
||||
|
|
Loading…
Reference in New Issue