Tests pass for mysql
small fix to when reindexing all metadata