0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd::db: Assert the callback thread_id's match up with the current ircd::ctx.

This commit is contained in:
Jason Volk 2018-12-12 14:52:04 -08:00
parent aac898a4b8
commit a7a00287bb

View file

@ -2505,6 +2505,8 @@ noexcept
int(info.flush_reason),
info.file_path,
};
assert(info.thread_id == ctx::id(*ctx::current));
}
void
@ -2525,6 +2527,8 @@ noexcept
info.largest_seqno,
int(info.flush_reason)
};
assert(info.thread_id == ctx::id(*ctx::current));
}
void
@ -2547,6 +2551,8 @@ noexcept
int(info.status.code()),
info.status.getState()?: "OK",
};
assert(info.thread_id == ctx::id(*ctx::current));
}
void