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

ircd::db: Replace default sleep() callback with ctx::sleep().

This commit is contained in:
Jason Volk 2018-08-23 02:14:50 -07:00
parent 5239e49f4f
commit d01430e64a

View file

@ -2270,12 +2270,16 @@ ircd::db::database::env::SleepForMicroseconds(int micros)
noexcept
{
#ifdef RB_DEBUG_DB_ENV
log.debug("'%s': sleep for %d microseconds",
d.name,
micros);
log::debug
{
"'%s': sleep for %d microseconds",
d.name,
micros
};
#endif
defaults.SleepForMicroseconds(micros);
assert(ctx::current);
ctx::sleep(microseconds(micros));
}
void