Skip to content

Commit

Permalink
Merge pull request #164 from jaredbischof/master
Browse files Browse the repository at this point in the history
Fixed path for virtual_parts index in mongo.
  • Loading branch information
jaredbischof committed Mar 14, 2014
2 parents d5bbe1a + 0eea36b commit 559eebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shock-server/node/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func Initialize() {
c := session.DB(conf.Conf["mongodb-database"]).C("Nodes")
c.EnsureIndex(mgo.Index{Key: []string{"id"}, Unique: true})
c.EnsureIndex(mgo.Index{Key: []string{"file.path"}, Background: true})
c.EnsureIndex(mgo.Index{Key: []string{"virtual_parts"}, Background: true})
c.EnsureIndex(mgo.Index{Key: []string{"file.virtual_parts"}, Background: true})
}

func dbDelete(q bson.M) (err error) {
Expand Down

0 comments on commit 559eebb

Please sign in to comment.