MongoDB::listCollections
MongoDB::selectCollection
MongoDB
PHP Manual

# MongoDB::repair

(PECL mongo >=0.9.0)

MongoDB::repair — Repairs and compacts this database

### 설명

public array MongoDB::repair ([ bool `$preserve_cloned_files`= `FALSE` [, bool `$backup_original_files`= `FALSE` ]] )

### 인수

`preserve_cloned_files`

  If cloned files should be kept if the repair fails.

`backup_original_files`

  If original files should be backed up.

### 반환값

Returns db response.

MongoDB::listCollections
MongoDB::selectCollection
MongoDB
PHP Manual