0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-05 01:58:35 +02:00

ircd::db: Prevent submitting row with one cell to request pool.

This commit is contained in:
Jason Volk 2019-01-11 14:01:56 -08:00
parent 56b1e760cf
commit 9a42fd9f60

View file

@ -9213,7 +9213,9 @@ ircd::db::seek(row &r,
//TODO: because right now double-querying the cache is gross.
const bool submit
{
!test(opts, get::NO_PARALLEL) && !exists(cache(column), key)
r.size() > 1 &&
!test(opts, get::NO_PARALLEL) &&
!exists(cache(column), key)
};
#ifdef RB_DEBUG_DB_SEEK_ROW