0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd::db: Add alignment assertion on read callback.

This commit is contained in:
Jason Volk 2018-12-30 15:13:29 -08:00
parent b36b34be30
commit 7bc1eee991

View file

@ -6846,6 +6846,7 @@ const noexcept try
scratch, length
};
assert(!this->opts.direct || buffer::aligned(buf, _buffer_align));
const auto read
{
fs::read(fd, buf, opts)