never make last minute changes before commiting

Former-commit-id: 7e5d3f4f160c1c6f91c42b19f95ad17fcb7f1590
This commit is contained in:
John Sully 2019-07-06 00:55:30 -04:00
parent 82bd5f0ecc
commit db206557e9

View File

@ -1120,12 +1120,12 @@ int dbSwapDatabases(int id1, int id2) {
* remain in the same DB they were. */
db1->pdict = db2->pdict;
db1->setexpire = db2->setexpire;
db1->expireitr = db2->expireitr->end();
db1->expireitr = db2->expireitr;
db1->avg_ttl = db2->avg_ttl;
db2->pdict = aux.pdict;
db2->setexpire = aux.setexpire;
db2->expireitr = aux.expireitr->end();
db2->expireitr = aux.expireitr;
db2->avg_ttl = aux.avg_ttl;
/* Now we need to handle clients blocked on lists: as an effect