Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-03-02 11:23:16 +0300
committerJoas Schilling <coding@schilljs.com>2022-03-02 11:23:16 +0300
commitabcf45e3367461714785b742f70a31b4774c3816 (patch)
treef80cd0090a1f3b50acbc7e136f818c43adc79774 /lib
parent5ac1995b0a8ac2f3cc79d1d7ca1ba47eb11904a1 (diff)
Also use hashed/indexed column on deletetechdebt/noid/also-use-hashed-column-on-delete
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/BackgroundJob/JobList.php4
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();
}