0
0
Fork 0
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:
Jason Volk 2017-09-25 22:16:24 -07:00
parent ec18d81d56
commit ffca90dd7b

View file

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