Skip to content

Commit

Permalink
[FAB-3242] Remove CouchDB skip TODO
Browse files Browse the repository at this point in the history
CouchDB skip will remain for future use.
Remove the TODO.

Change-Id: I3eb0d4ca70592cdae4bbc4a6a21c78d66990dc82
Signed-off-by: Chris Elder <chris.elder@us.ibm.com>
  • Loading branch information
Chris Elder committed Apr 24, 2017
1 parent 0e0deac commit 0f828ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var lastKeyIndicator = byte(0x01)

var binaryWrapper = "valueBytes"

//TODO querySkip is implemented for future use by query paging
//querySkip is implemented for future use by query paging
//currently defaulted to 0 and is not used
var querySkip = 0

Expand Down
5 changes: 2 additions & 3 deletions core/ledger/util/couchdb/couchdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -763,9 +763,8 @@ func (dbclient *CouchDatabase) ReadDoc(id string) (*CouchDoc, string, error) {

//ReadDocRange method provides function to a range of documents based on the start and end keys
//startKey and endKey can also be empty strings. If startKey and endKey are empty, all documents are returned
//TODO This function provides a limit option to specify the max number of entries. This will
//need to be added to configuration options. Skip will not be used by Fabric since a consistent
//result set is required
//This function provides a limit option to specify the max number of entries and is supplied by config.
//Skip is reserved for possible future future use.
func (dbclient *CouchDatabase) ReadDocRange(startKey, endKey string, limit, skip int) (*[]QueryResult, error) {

logger.Debugf("Entering ReadDocRange() startKey=%s, endKey=%s", startKey, endKey)
Expand Down

0 comments on commit 0f828ef

Please sign in to comment.