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