public function repair($preserve_cloned_files = false, $backup_original_files = false)
    {
        $command = [
            'repairDatabase' => 1,
            'preserveClonedFilesOnFailure' => $preserve_cloned_files,
            'backupOriginalFiles' => $backup_original_files,
        ];

        return $this->command($command);
    }
public function repair($preserve_cloned_files = false, $backup_original_files = false)
    {
        $command = [
            'repairDatabase' => 1,
            'preserveClonedFilesOnFailure' => $preserve_cloned_files,
            'backupOriginalFiles' => $backup_original_files,
        ];

        return $this->command($command);
    }
public function repair ( $ preserve_cloned_files = false , $ backup_original_files = false ) { $ command = [ 'repairDatabase' => 1 , 'preserveClonedFilesOnFailure' => $ preserve_cloned_files , 'backupOriginalFiles' => $ backup_original_files , ] ; return $ this -> command ( $ command ) ; }
Repairs and compacts this database

@link http://www.php.net/manual/en/mongodb.repair.php
@param bool $preserve_cloned_files [optional] <p>If cloned files should be kept if the repair fails.</p>
@param bool $backup_original_files [optional] <p>If original files should be backed up.</p>
@return array <p>Returns db response.</p>
Repairs and compacts this database