mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
ircd: Minor cleanup: simplify decl; fix comment; relax log level.
This commit is contained in:
parent
36bb0d3175
commit
af93d55927
3 changed files with 3 additions and 5 deletions
|
@ -30,7 +30,7 @@ namespace ircd::net
|
||||||
IRCD_EXCEPTION(error, not_found)
|
IRCD_EXCEPTION(error, not_found)
|
||||||
|
|
||||||
// SNOMASK 'N' "net"
|
// SNOMASK 'N' "net"
|
||||||
extern struct log::log log;
|
extern log::log log;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "hostport.h"
|
#include "hostport.h"
|
||||||
|
|
|
@ -1571,9 +1571,7 @@ ircd::db::database::column::column(database &d,
|
||||||
// Specify that index blocks should use the cache. If not, they will be
|
// Specify that index blocks should use the cache. If not, they will be
|
||||||
// pre-read into RAM by rocksdb internally. Because of the above
|
// pre-read into RAM by rocksdb internally. Because of the above
|
||||||
// TwoLevelIndex + partition_filters configuration on RocksDB v5.15 it's
|
// TwoLevelIndex + partition_filters configuration on RocksDB v5.15 it's
|
||||||
// better to use pre-read except in the case of a massive database. No
|
// better to use pre-read except in the case of a massive database.
|
||||||
// known deployments which exceed partitioned pre-read exist so these
|
|
||||||
// settings are unconditionally false.
|
|
||||||
table_opts.cache_index_and_filter_blocks = true;
|
table_opts.cache_index_and_filter_blocks = true;
|
||||||
table_opts.cache_index_and_filter_blocks_with_high_priority = false;
|
table_opts.cache_index_and_filter_blocks_with_high_priority = false;
|
||||||
table_opts.pin_top_level_index_and_filter = false;
|
table_opts.pin_top_level_index_and_filter = false;
|
||||||
|
|
|
@ -66,7 +66,7 @@ _has_power(const m::event &event,
|
||||||
};
|
};
|
||||||
|
|
||||||
if(!power(sender, "events", type, state_key))
|
if(!power(sender, "events", type, state_key))
|
||||||
log::error //TODO: throw
|
log::warning //TODO: throw
|
||||||
{
|
{
|
||||||
"Power violation %s in %s for %s %s,%s",
|
"Power violation %s in %s for %s %s,%s",
|
||||||
string_view{sender},
|
string_view{sender},
|
||||||
|
|
Loading…
Reference in a new issue