Move the libmagic check after the filesize checks
commitd32e13545e699e6920e0e5a3ebfe8a94206de32f
authorcaiyulun <caiyulun@bupt.edu.cn>
Sun, 23 Apr 2017 11:13:31 +0000 (23 19:13 +0800)
committerOlly Betts <olly@survex.com>
Tue, 25 Apr 2017 20:53:15 +0000 (26 08:53 +1200)
tree5440c28cd68c37cc51ffb9a4283957a23fc5cf50
parenta15a0194dad064ecf3ece1862223e75c794ec0cf
Move the libmagic check after the filesize checks

the libmagic call to get mime type is expensive than
call the stat to get filesize, so we can check the size
by call the stat before call libmagic.
xapian-applications/omega/omindex.cc