0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd::db::txn: Fix has() queries.

This commit is contained in:
Jason Volk 2020-05-12 19:03:54 -07:00
parent fde100bb93
commit 8bc371d7fb

View file

@ -4818,8 +4818,8 @@ const
return !for_each(*this, delta_closure_bool{[&op, &col]
(const auto &delta)
{
return std::get<delta::OP>(delta) == op &&
std::get<delta::COL>(delta) == col;
return std::get<delta::OP>(delta) != op &&
std::get<delta::COL>(delta) != col;
}});
}
@ -4866,9 +4866,9 @@ const
return !for_each(*this, delta_closure_bool{[&op, &col, &key]
(const auto &delta)
{
return std::get<delta::OP>(delta) == op &&
std::get<delta::COL>(delta) == col &&
std::get<delta::KEY>(delta) == key;
return std::get<delta::OP>(delta) != op &&
std::get<delta::COL>(delta) != col &&
std::get<delta::KEY>(delta) != key;
}});
}