mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 15:30:52 +01:00
ircd:Ⓜ️ Indexers need to check if their columns were given by the user.
This commit is contained in:
parent
ec18d81d56
commit
ffca90dd7b
1 changed files with 12 additions and 3 deletions
|
@ -965,7 +965,10 @@ ircd::m::indexer::concat::operator()(const event &event,
|
||||||
db::iov &iov)
|
db::iov &iov)
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
const size_t buf_max
|
if(!iov.has(db::op::SET, col_a) || !iov.has(db::op::SET, col_b))
|
||||||
|
return;
|
||||||
|
|
||||||
|
static const size_t buf_max
|
||||||
{
|
{
|
||||||
1024
|
1024
|
||||||
};
|
};
|
||||||
|
@ -1018,7 +1021,10 @@ ircd::m::indexer::concat_v::operator()(const event &event,
|
||||||
db::iov &iov)
|
db::iov &iov)
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
const size_t buf_max
|
if(!iov.has(db::op::SET, col_c) || !iov.has(db::op::SET, col_b))
|
||||||
|
return;
|
||||||
|
|
||||||
|
static const size_t buf_max
|
||||||
{
|
{
|
||||||
1024
|
1024
|
||||||
};
|
};
|
||||||
|
@ -1080,7 +1086,10 @@ ircd::m::indexer::concat_2v::operator()(const event &event,
|
||||||
db::iov &iov)
|
db::iov &iov)
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
const size_t buf_max
|
if(!iov.has(db::op::SET, col_c) || !iov.has(db::op::SET, col_b0) || !iov.has(db::op::SET, col_b1))
|
||||||
|
return;
|
||||||
|
|
||||||
|
static const size_t buf_max
|
||||||
{
|
{
|
||||||
2048
|
2048
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue