File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 2727 */ 
2828namespace  OC \Files \Cache ;
2929
30+ use  Doctrine \DBAL \Exception \DeadlockException ;
3031use  OC \DB \Exceptions \DbalException ;
3132use  OC \Files \FileInfo ;
3233use  OCP \Files \Cache \ICacheEntry ;
@@ -260,7 +261,7 @@ private function correctParentStorageMtime($internalPath) {
260261			if  ($ mtimefalse ) {
261262				try  {
262263					$ this cache ->update ($ parentId'storage_mtime '  => $ mtime
263- 				} catch  (DbalException $ e
264+ 				} catch  (DeadlockException $ e
264265					// ignore the failure. 
265266					// with failures concurrent updates, someone else would have already done it. 
266267					// in the worst case the `storage_mtime` isn't updated, which should at most only trigger an extra rescan 
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ public function getState();
165165	 *          to bridge old code to the new API 
166166	 * 
167167	 * @return IResult|int 
168- 	 * @throws Exception since 21.0.0 
168+ 	 * @throws \Doctrine\DBAL\ Exception since 21.0.0 
169169	 * @since 8.2.0 
170170	 * @deprecated 22.0.0 Use executeQuery or executeStatement 
171171	 */ 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments