Fix style

This commit is contained in:
alesapin 2022-03-24 11:25:28 +01:00
parent 93d1b1d198
commit d3fbd9b2ad
2 changed files with 5 additions and 5 deletions

View File

@ -535,7 +535,7 @@ static int readNumber(const String & path)
return result;
}
static void sanityChecks(Server* server)
static void sanityChecks(Server * server)
{
std::string data_path = getCanonicalPath(server->config().getString("path", DBMS_DEFAULT_PATH));
std::string logs_path = server->config().getString("logger.log", "");

View File

@ -83,12 +83,12 @@ String getBlockDeviceId([[maybe_unused]] const String & path)
#if !defined(__linux__)
[[noreturn]]
#endif
BlockDeviceType getBlockDeviceType([[maybe_unused]] const String & deviceId)
BlockDeviceType getBlockDeviceType([[maybe_unused]] const String & device_id)
{
#if defined(__linux__)
try
{
ReadBufferFromFile in("/sys/dev/block/" + deviceId + "/queue/rotational");
ReadBufferFromFile in("/sys/dev/block/" + device_id + "/queue/rotational");
int rotational;
readText(rotational, in);
return rotational ? BlockDeviceType::ROT : BlockDeviceType::NONROT;
@ -105,12 +105,12 @@ BlockDeviceType getBlockDeviceType([[maybe_unused]] const String & deviceId)
#if !defined(__linux__)
[[noreturn]]
#endif
UInt64 getBlockDeviceReadAheadBytes([[maybe_unused]] const String & deviceId)
UInt64 getBlockDeviceReadAheadBytes([[maybe_unused]] const String & device_id)
{
#if defined(__linux__)
try
{
ReadBufferFromFile in("/sys/dev/block/" + deviceId + "/queue/read_ahead_kb");
ReadBufferFromFile in("/sys/dev/block/" + device_id + "/queue/read_ahead_kb");
int read_ahead_kb;
readText(read_ahead_kb, in);
return read_ahead_kb * 1024;