nextcloud/lib/private/files
Vincent Petry a542c57a7b Catch duplicate insertion errors while scanning files
When two scanning processed run at the same time, for example when
scan.php and list.php were called at the same time on an external
storage mountpoint, duplicate insertion errors can occurs.

These errors are now logged and ignored.

Since both scans are running in parallel transactions, they don't see
each other's changes directly in the DB which can cause duplicate
insertion errors for mime types as well, but those mime types can't be
selected yet. The solution to this is to force-reload the mimetypes list
after the transaction is finished.

Fixes #5199
2013-10-23 13:00:46 +02:00
..
cache Catch duplicate insertion errors while scanning files 2013-10-23 13:00:46 +02:00
mount move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
node move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
storage php 5.3 compatibility for \OC\Files\Storage 2013-10-08 23:00:41 +02:00
stream move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
type move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
utils move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
filesystem.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
mapper.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
view.php Prevent renaming/deleting mount points 2013-10-15 14:58:58 +02:00