diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-08-01 00:07:46 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-08-01 00:07:46 +0200 |
commit | 2d199657506a53dda1bd2879f951684c26133ff2 (patch) | |
tree | 6ede8637f87ba541ec53b0d7a6d68c70d95f98b1 /apps/media/ajax | |
parent | 6e2ce76223eb6f0dcd1ef34e086fa59eb5fb3f8b (diff) | |
download | nextcloud-server-2d199657506a53dda1bd2879f951684c26133ff2.tar.gz nextcloud-server-2d199657506a53dda1bd2879f951684c26133ff2.zip |
some improvements to collection scanning
Diffstat (limited to 'apps/media/ajax')
-rw-r--r-- | apps/media/ajax/api.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/media/ajax/api.php b/apps/media/ajax/api.php index b86c69d0beb..bb86c13f287 100644 --- a/apps/media/ajax/api.php +++ b/apps/media/ajax/api.php @@ -75,6 +75,7 @@ if($arguments['action']){ echo json_encode($artists); break; case 'scan': + OC_DB::beginTransaction(); set_time_limit(0); //recursive scan can take a while $path=$arguments['path']; if(OC_Filesystem::is_dir($path)){ @@ -85,6 +86,7 @@ if($arguments['action']){ } } echo OC_MEDIA_SCANNER::scanFolder($path); + OC_DB::commit(); flush(); break; case 'scanFile': |