Fixed typo and alignment issues on aarch64

This commit is contained in:
Roland Kühn 2022-04-10 16:28:28 +02:00
parent d280a7616c
commit f68724c7b9
3 changed files with 6 additions and 6 deletions

View File

@ -35,7 +35,7 @@ namespace beedb::concurrency
*
* The time "0" in combination with the set committed flag indicates "infinity".
*/
class timestamp
class alignas(64) timestamp
{
public:
using timestamp_t = std::uint64_t;
@ -113,4 +113,4 @@ class timestamp
// Time and committed flag (last bit).
timestamp_t _timestamp_and_committed_flag = 1u;
};
} // namespace beedb::concurrency
} // namespace beedb::concurrency

View File

@ -26,7 +26,7 @@
namespace beedb::storage
{
class RecordIdentifier
class alignas(64) RecordIdentifier
{
public:
static_assert(sizeof(Page::id_t) + sizeof(std::uint16_t) <= sizeof(std::uint64_t));
@ -88,4 +88,4 @@ template <> struct hash<beedb::storage::RecordIdentifier>
return std::hash<std::uint64_t>()(static_cast<std::uint64_t>(rid));
}
};
} // namespace std
} // namespace std

View File

@ -112,7 +112,7 @@ bool ClientConsole::handle_response(const std::string &response)
}
else if (server_response->type() == ServerResponse::Type::ServerClosed)
{
std::cout << "Server sopped." << std::endl;
std::cout << "Server stopped." << std::endl;
return false;
}
@ -142,4 +142,4 @@ void ClientConsole::plan_to_table(util::TextTable &table, nlohmann::json &layer,
plan_to_table(table, child, depth + 2);
}
}
}
}