mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 08:21:09 +01:00
ircd::server: Additional assertions.
This commit is contained in:
parent
79475d2ba3
commit
34e35d97fe
1 changed files with 2 additions and 0 deletions
|
@ -2390,6 +2390,7 @@ noexcept
|
||||||
assert(!tag.canceled());
|
assert(!tag.canceled());
|
||||||
assert(request.tag == &tag);
|
assert(request.tag == &tag);
|
||||||
assert(tag.request == &request);
|
assert(tag.request == &request);
|
||||||
|
assert(!tag.cancellation);
|
||||||
|
|
||||||
// Disassociate the user's request and add our dummy request in its place.
|
// Disassociate the user's request and add our dummy request in its place.
|
||||||
disassociate(request, tag);
|
disassociate(request, tag);
|
||||||
|
@ -2406,6 +2407,7 @@ noexcept
|
||||||
size(request.out) + size(request.in)
|
size(request.out) + size(request.in)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
assert(!tag.cancellation);
|
||||||
tag.cancellation = std::make_unique<char[]>(cancellation_size);
|
tag.cancellation = std::make_unique<char[]>(cancellation_size);
|
||||||
char *ptr{tag.cancellation.get()};
|
char *ptr{tag.cancellation.get()};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue