diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-08-10 14:39:34 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-08-10 14:39:34 +0200 |
commit | d979e54030b0069572affe173c06680597cc831d (patch) | |
tree | 63d72d28ae9aaaffe841aaa0274cd47263a67232 /lib/private/server.php | |
parent | 58e96e53b039365751eb8c4a2d511fcfcf507891 (diff) | |
download | nextcloud-server-d979e54030b0069572affe173c06680597cc831d.tar.gz nextcloud-server-d979e54030b0069572affe173c06680597cc831d.zip |
log a warning while trying to acquire a db lock from within a transaction
Diffstat (limited to 'lib/private/server.php')
-rw-r--r-- | lib/private/server.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/server.php b/lib/private/server.php index 51e70405432..be2cfc2cf88 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -432,10 +432,10 @@ class Server extends SimpleContainer implements IServerContainer { /** @var \OC\Memcache\Factory $memcacheFactory */ $memcacheFactory = $c->getMemCacheFactory(); $memcache = $memcacheFactory->createLocking('lock'); - if (!($memcache instanceof \OC\Memcache\NullCache)) { - return new MemcacheLockingProvider($memcache); - } - return new DBLockingProvider($c->getDatabaseConnection()); +// if (!($memcache instanceof \OC\Memcache\NullCache)) { +// return new MemcacheLockingProvider($memcache); +// } + return new DBLockingProvider($c->getDatabaseConnection(), $c->getLogger()); } return new NoopLockingProvider(); }); |