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:
parent
b36b34be30
commit
7bc1eee991
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue