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

ircd: Minor cleanup: simplify decl; fix comment; relax log level.

This commit is contained in:
Jason Volk 2018-11-08 22:19:26 -08:00
parent 36bb0d3175
commit af93d55927
3 changed files with 3 additions and 5 deletions

View file

@ -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"

View file

@ -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;

View file

@ -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},