mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 00:10:59 +01:00
ircd::db: Add more information to some file-related env log messages.
This commit is contained in:
parent
beda5abc2a
commit
1e1c9c6a1e
1 changed files with 19 additions and 6 deletions
25
ircd/db.cc
25
ircd/db.cc
|
@ -3489,10 +3489,14 @@ noexcept try
|
|||
#ifdef RB_DEBUG_DB_ENV
|
||||
log::debug
|
||||
{
|
||||
log, "'%s': new sequential file '%s' options:%p",
|
||||
log, "'%s': new sequential file '%s' options:%p [mm:%b direct:%b bufsz:%zu readahead:%zu]",
|
||||
d.name,
|
||||
name,
|
||||
&options
|
||||
&options,
|
||||
options.use_mmap_reads,
|
||||
options.use_direct_reads,
|
||||
options.random_access_max_buffer_size,
|
||||
options.compaction_readahead_size,
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -3519,10 +3523,14 @@ noexcept try
|
|||
#ifdef RB_DEBUG_DB_ENV
|
||||
log::debug
|
||||
{
|
||||
log, "'%s': new random access file '%s' options:%p",
|
||||
log, "'%s': new random access file '%s' options:%p [mm:%b direct:%b bufsz:%zu readahead:%zu]",
|
||||
d.name,
|
||||
name,
|
||||
&options
|
||||
&options,
|
||||
options.use_mmap_reads,
|
||||
options.use_direct_reads,
|
||||
options.random_access_max_buffer_size,
|
||||
options.compaction_readahead_size,
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -3549,10 +3557,15 @@ noexcept try
|
|||
#ifdef RB_DEBUG_DB_ENV
|
||||
log::debug
|
||||
{
|
||||
log, "'%s': new writable file '%s' options:%p",
|
||||
log, "'%s': new writable file '%s' options:%p [mm:%b direct:%b rl:%p bufsz:%zu syncsz:%zu]",
|
||||
d.name,
|
||||
name,
|
||||
&options
|
||||
&options,
|
||||
options.use_mmap_writes,
|
||||
options.use_direct_writes,
|
||||
options.rate_limiter,
|
||||
options.writable_file_max_buffer_size,
|
||||
options.bytes_per_sync,
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue