mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
ircd::db::database::env: Add missing fdno in log output.
ircd::db: Add missing validator in debug.
This commit is contained in:
parent
5377d46ec5
commit
62f861c54a
2 changed files with 22 additions and 15 deletions
|
@ -7109,7 +7109,7 @@ ircd::db::commit(database &d,
|
|||
#ifdef RB_DEBUG
|
||||
log::debug
|
||||
{
|
||||
log, "'%s' %lu COMMIT %s in %ld$us",
|
||||
log, "'%s': %lu COMMIT %s in %ld$us",
|
||||
d.name,
|
||||
sequence(d),
|
||||
debug(batch),
|
||||
|
@ -7236,10 +7236,11 @@ ircd::db::_seek(database::column &c,
|
|||
#ifdef RB_DEBUG_DB_SEEK
|
||||
log::debug
|
||||
{
|
||||
log, "'%s' %lu:%lu SEEK %s in %ld$us '%s'",
|
||||
log, "'%s': %lu:%lu SEEK %s %s in %ld$us '%s'",
|
||||
name(d),
|
||||
sequence(d),
|
||||
sequence(opts.snapshot),
|
||||
valid(it)? "VALID" : "INVALID",
|
||||
it.status().ToString(),
|
||||
timer.at<microseconds>().count(),
|
||||
name(c)
|
||||
|
@ -7269,7 +7270,7 @@ ircd::db::_seek(database::column &c,
|
|||
#ifdef RB_DEBUG_DB_SEEK
|
||||
log::debug
|
||||
{
|
||||
log, "'%s' %lu:%lu SEEK[%s] %s -> %s in %ld$us '%s'",
|
||||
log, "'%s': %lu:%lu SEEK[%s] %s -> %s in %ld$us '%s'",
|
||||
name(d),
|
||||
sequence(d),
|
||||
sequence(opts.snapshot),
|
||||
|
|
|
@ -1402,9 +1402,10 @@ noexcept try
|
|||
#ifdef RB_DEBUG_DB_ENV
|
||||
log::debug
|
||||
{
|
||||
log, "'%s': wfile:%p sync",
|
||||
log, "'%s': wfile:%p fd:%d sync",
|
||||
d.name,
|
||||
this
|
||||
this,
|
||||
int(fd),
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -1416,10 +1417,11 @@ catch(const std::system_error &e)
|
|||
{
|
||||
log::error
|
||||
{
|
||||
log, "'%s': wfile:%p sync :%s",
|
||||
log, "'%s': wfile:%p fd:%d sync :%s",
|
||||
d.name,
|
||||
this,
|
||||
e.what()
|
||||
int(fd),
|
||||
e.what(),
|
||||
};
|
||||
|
||||
return error_to_status{e};
|
||||
|
@ -1428,10 +1430,11 @@ catch(const std::exception &e)
|
|||
{
|
||||
log::error
|
||||
{
|
||||
log, "'%s': wfile:%p sync :%s",
|
||||
log, "'%s': wfile:%p fd:%d sync :%s",
|
||||
d.name,
|
||||
this,
|
||||
e.what()
|
||||
int(fd),
|
||||
e.what(),
|
||||
};
|
||||
|
||||
return error_to_status{e};
|
||||
|
@ -1447,9 +1450,10 @@ noexcept try
|
|||
#ifdef RB_DEBUG_DB_ENV
|
||||
log::debug
|
||||
{
|
||||
log, "'%s': wfile:%p fsync",
|
||||
log, "'%s': wfile:%p fd:%d fsync",
|
||||
d.name,
|
||||
this
|
||||
this,
|
||||
int(fd),
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -1461,10 +1465,11 @@ catch(const std::system_error &e)
|
|||
{
|
||||
log::error
|
||||
{
|
||||
log, "'%s': wfile:%p fsync :%s",
|
||||
log, "'%s': wfile:%p fd:%d fsync :%s",
|
||||
d.name,
|
||||
this,
|
||||
e.what()
|
||||
int(fd),
|
||||
e.what(),
|
||||
};
|
||||
|
||||
return error_to_status{e};
|
||||
|
@ -1473,10 +1478,11 @@ catch(const std::exception &e)
|
|||
{
|
||||
log::error
|
||||
{
|
||||
log, "'%s': wfile:%p fsync :%s",
|
||||
log, "'%s': wfile:%p fd:%d fsync :%s",
|
||||
d.name,
|
||||
this,
|
||||
e.what()
|
||||
int(fd),
|
||||
e.what(),
|
||||
};
|
||||
|
||||
return error_to_status{e};
|
||||
|
|
Loading…
Reference in a new issue