Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

formatted objects bson

  • Loading branch information...
commit 595a150dace6c7e5053570d821e63d43502b8fed 1 parent 2fbf335
John Mac authored committed
Showing with 3 additions and 9 deletions.
  1. +3 −9 mongo/database.go
View
12 mongo/database.go
@@ -32,15 +32,9 @@ func (db *Database) Drop() os.Error {
func (db *Database) Repair(preserveClonedFilesOnFailure, backupOriginalFiles bool) os.Error {
cmd := &_Object{
map[string]BSON{
- "repairDatabase": &_Number{
- 1, _Null{},
- },
- "preserveClonedFilesOnFailure": &_Boolean{
- preserveClonedFilesOnFailure, _Null{},
- },
- "backupOriginalFiles": &_Boolean{
- backupOriginalFiles, _Null{},
- },
+ "repairDatabase": &_Number{1, _Null{}},
+ "preserveClonedFilesOnFailure": &_Boolean{preserveClonedFilesOnFailure, _Null{}},
+ "backupOriginalFiles": &_Boolean{backupOriginalFiles, _Null{}},
},
_Null{},
}
Please sign in to comment.
Something went wrong with that request. Please try again.