diff options
author | Joas Schilling <coding@schilljs.com> | 2022-03-02 09:23:16 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-03-02 09:23:16 +0100 |
commit | abcf45e3367461714785b742f70a31b4774c3816 (patch) | |
tree | f80cd0090a1f3b50acbc7e136f818c43adc79774 /lib | |
parent | 5ac1995b0a8ac2f3cc79d1d7ca1ba47eb11904a1 (diff) | |
download | nextcloud-server-abcf45e3367461714785b742f70a31b4774c3816.tar.gz nextcloud-server-abcf45e3367461714785b742f70a31b4774c3816.zip |
Also use hashed/indexed column on delete
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/BackgroundJob/JobList.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php index 16dfa7b58a6..67caea62af0 100644 --- a/lib/private/BackgroundJob/JobList.php +++ b/lib/private/BackgroundJob/JobList.php @@ -111,8 +111,8 @@ class JobList implements IJobList { $query->delete('jobs') ->where($query->expr()->eq('class', $query->createNamedParameter($class))); if (!is_null($argument)) { - $argument = json_encode($argument); - $query->andWhere($query->expr()->eq('argument', $query->createNamedParameter($argument))); + $argumentJson = json_encode($argument); + $query->andWhere($query->expr()->eq('argument_hash', $query->createNamedParameter(md5($argumentJson)))); } $query->execute(); } |