mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 19:28:52 +02:00
ircd::db: Additional env debug messages.
This commit is contained in:
parent
e90ed4d41a
commit
4ce6b69f69
1 changed files with 35 additions and 0 deletions
35
ircd/db.cc
35
ircd/db.cc
|
@ -2282,6 +2282,16 @@ rocksdb::Status
|
|||
ircd::db::database::env::GetThreadList(std::vector<ThreadStatus>* thread_list)
|
||||
noexcept
|
||||
{
|
||||
#ifdef RB_DEBUG_DB_ENV
|
||||
log::debug
|
||||
{
|
||||
log, "'%s': get thread list %p (%zu)",
|
||||
d.name,
|
||||
thread_list,
|
||||
thread_list? thread_list->size() : 0UL
|
||||
};
|
||||
#endif
|
||||
|
||||
return defaults.GetThreadList(thread_list);
|
||||
}
|
||||
|
||||
|
@ -2289,6 +2299,14 @@ rocksdb::ThreadStatusUpdater*
|
|||
ircd::db::database::env::GetThreadStatusUpdater()
|
||||
const noexcept
|
||||
{
|
||||
#ifdef RB_DEBUG_DB_ENV
|
||||
log::debug
|
||||
{
|
||||
log, "'%s': get thread status updater",
|
||||
d.name,
|
||||
};
|
||||
#endif
|
||||
|
||||
return defaults.GetThreadStatusUpdater();
|
||||
}
|
||||
|
||||
|
@ -2296,6 +2314,14 @@ uint64_t
|
|||
ircd::db::database::env::GetThreadID()
|
||||
const noexcept
|
||||
{
|
||||
#ifdef RB_DEBUG_DB_ENV
|
||||
log::debug
|
||||
{
|
||||
log, "'%s': get thread ID",
|
||||
d.name,
|
||||
};
|
||||
#endif
|
||||
|
||||
return defaults.GetThreadID();
|
||||
}
|
||||
|
||||
|
@ -2303,6 +2329,15 @@ int
|
|||
ircd::db::database::env::GetBackgroundThreads(Priority pri)
|
||||
noexcept
|
||||
{
|
||||
#ifdef RB_DEBUG_DB_ENV
|
||||
log::debug
|
||||
{
|
||||
log, "'%s': get background threads prio:%s",
|
||||
d.name,
|
||||
reflect(pri)
|
||||
};
|
||||
#endif
|
||||
|
||||
return defaults.GetBackgroundThreads(pri);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue