Skip to content

Commit

Permalink
Fix BucketManager method GetDesignDocuments returning slice of identi…
Browse files Browse the repository at this point in the history
…cal pointers

Change-Id: I81f45a1f87bdc7849066e8999c1e22ac29e56840
Reviewed-on: http://review.couchbase.org/79643
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Brett Lawson <brett19@gmail.com>
  • Loading branch information
nbuchanan authored and brett19 committed Jun 21, 2017
1 parent bf740f1 commit ea75817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bucketmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ func (bm *BucketManager) GetDesignDocuments() ([]*DesignDocument, error) {
}

var ddocs []*DesignDocument
for _, ddocData := range ddocsObj.Rows {
ddoc := &ddocData.Doc.Json
for index, ddocData := range ddocsObj.Rows {
ddoc := &ddocsObj.Rows[index].Doc.Json
ddoc.Name = ddocData.Doc.Meta.Id[8:]
ddocs = append(ddocs, ddoc)
}
Expand Down

0 comments on commit ea75817

Please sign in to comment.