0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 20:28:52 +02:00

ircd::db: Test valid-equal to index on cell load.

This commit is contained in:
Jason Volk 2017-09-21 17:01:29 -07:00
parent fc753f7440
commit f7708f47f6

View file

@ -2022,7 +2022,7 @@ ircd::db::cell::load(const string_view &index,
gopts opts)
{
database &d(c);
if(valid() && !opts.snapshot && sequence(ss) == sequence(d))
if(valid(index) && !opts.snapshot && sequence(ss) == sequence(d))
return true;
if(bool(opts.snapshot))