aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-01-28 15:36:33 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-01-28 15:40:23 +0100
commitef73aedd7e409b08db164aaf57cdeb2e0c1e139e (patch)
treecd8926e8e8d2eb524e8488a135563d8e23882d16
parent5238fc3f549d4eaddeb18a65493a3d27472c5f70 (diff)
downloadnextcloud-server-ef73aedd7e409b08db164aaf57cdeb2e0c1e139e.tar.gz
nextcloud-server-ef73aedd7e409b08db164aaf57cdeb2e0c1e139e.zip
Deprecate the method and warn against using it
-rw-r--r--lib/private/backgroundjob/joblist.php2
-rw-r--r--lib/public/backgroundjob/ijoblist.php2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/backgroundjob/joblist.php b/lib/private/backgroundjob/joblist.php
index cc9be574807..2920cb5214c 100644
--- a/lib/private/backgroundjob/joblist.php
+++ b/lib/private/backgroundjob/joblist.php
@@ -139,6 +139,8 @@ class JobList implements IJobList {
* get all jobs in the list
*
* @return IJob[]
+ * @deprecated 9.0.0 - This method is dangerous since it can cause load and
+ * memory problems when creating too many instances.
*/
public function getAll() {
$query = $this->connection->getQueryBuilder();
diff --git a/lib/public/backgroundjob/ijoblist.php b/lib/public/backgroundjob/ijoblist.php
index 13775457edd..5a76ce1ba26 100644
--- a/lib/public/backgroundjob/ijoblist.php
+++ b/lib/public/backgroundjob/ijoblist.php
@@ -64,6 +64,8 @@ interface IJobList {
*
* @return \OCP\BackgroundJob\IJob[]
* @since 7.0.0
+ * @deprecated 9.0.0 - This method is dangerous since it can cause load and
+ * memory problems when creating too many instances.
*/
public function getAll();