0
0
Fork 0
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:
Jason Volk 2019-04-12 07:12:49 -07:00
parent 79475d2ba3
commit 34e35d97fe

View file

@ -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()};