Fix getAllKeys() method for memcache instances

This commit is contained in:
Philipp Holzer 2019-08-15 13:58:01 +02:00
parent 41e2031e6b
commit e2e109b8c1
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
5 changed files with 108 additions and 17 deletions

View file

@ -138,7 +138,7 @@ class DatabaseLock extends Lock
if (empty($prefix)) {
$where = ['`expires` >= ?', DateTimeFormat::utcNow()];
} else {
$where = ['`expires` >= ? AND `k` LIKE CONCAT(?, \'%\')', DateTimeFormat::utcNow(), $prefix];
$where = ['`expires` >= ? AND `name` LIKE CONCAT(?, \'%\')', DateTimeFormat::utcNow(), $prefix];
}
$stmt = $this->dba->select('locks', ['name'], $where);