@@ -69,7 +69,7 @@ private function getUserToScan() {
6969			$ queryselect ('m.user_id ' )
7070				->from ('filecache ' , 'f ' )
7171				->leftJoin ('f ' , 'mounts ' , 'm ' , $ queryexpr ()->eq ('m.storage_id ' , 'f.storage ' ))
72- 				->where ($ queryexpr ()->lt ('f.size ' , $ querycreateNamedParameter (0 , IQueryBuilder::PARAM_INT )))
72+ 				->where ($ queryexpr ()->eq ('f.size ' , $ querycreateNamedParameter (- 1 , IQueryBuilder::PARAM_INT )))
7373				->andWhere ($ queryexpr ()->gt ('f.parent ' , $ querycreateNamedParameter (-1 , IQueryBuilder::PARAM_INT )))
7474				->setMaxResults (10 )
7575				->groupBy ('f.storage ' )
@@ -90,7 +90,7 @@ private function getUserToScan() {
9090			$ queryselect ('m.user_id ' )
9191				->from ('filecache ' , 'f ' )
9292				->leftJoin ('f ' , 'mounts ' , 'm ' , $ queryexpr ()->eq ('m.storage_id ' , 'f.storage ' ))
93- 				->where ($ queryexpr ()->lt ('f.size ' , $ querycreateNamedParameter (0 , IQueryBuilder::PARAM_INT )))
93+ 				->where ($ queryexpr ()->eq ('f.size ' , $ querycreateNamedParameter (- 1 , IQueryBuilder::PARAM_INT )))
9494				->andWhere ($ queryexpr ()->gt ('f.parent ' , $ querycreateNamedParameter (-1 , IQueryBuilder::PARAM_INT )))
9595				->andWhere ($ queryexpr ()->in ('f.storage ' , $ querycreateNamedParameter ($ storagesPARAM_INT_ARRAY )))
9696				->setMaxResults (1 )
@@ -101,7 +101,7 @@ private function getUserToScan() {
101101			$ queryselect ('m.user_id ' )
102102				->from ('filecache ' , 'f ' )
103103				->innerJoin ('f ' , 'mounts ' , 'm ' , $ queryexpr ()->eq ('m.storage_id ' , 'f.storage ' ))
104- 				->where ($ queryexpr ()->lt ('f.size ' , $ querycreateNamedParameter (0 , IQueryBuilder::PARAM_INT )))
104+ 				->where ($ queryexpr ()->eq ('f.size ' , $ querycreateNamedParameter (- 1 , IQueryBuilder::PARAM_INT )))
105105				->andWhere ($ queryexpr ()->gt ('f.parent ' , $ querycreateNamedParameter (-1 , IQueryBuilder::PARAM_INT )))
106106				->setMaxResults (1 )
107107				->runAcrossAllShards ();
0 commit comments