Find files with checksum is null

This commit is contained in:
hjp 2010-09-02 11:40:57 +00:00
parent 4f4e5540ff
commit 9c0af9a71e
1 changed files with 9 additions and 0 deletions

9
Notes
View File

@ -127,3 +127,12 @@ are hardlinked to older instances. Example (on mri):
| 3225686 | f | 65559 | 1260229629 | hjp | betreuer | u::rw-,g::r--,o:r-- | | NULL | NULL | NULL |
+---------+-----------+-----------+------------+------------+------------+---------------------+----------------+-----------+------------------------------------------+-----------------+
Find files with checksum is null:
select versions2.id, prefix, path from versions2, instances, files, sessions
where file_type = 'f' and checksum is null
and versions2.id=instances.version
and instances.file=files.id
and instances.session=sessions.id
limit 100000;