code: func (c *cursor) skipPendingUpdates(forwards bool) {
  	for c.dbIter.Valid() {
  		var skip bool
  		key := c.dbIter.Key()
  		if c.bucket.tx.pendingRemove.Has(key) {
  			skip = true
  		} else if c.bucket.tx.pendingKeys.Has(key) {
  			skip = true
  		}
  		if !skip {
  			break
  		}
  
  		if forwards {
  			c.dbIter.Next()
  		} else {
  			c.dbIter.Prev()
  		}
  	}
  }
docs: // skipPendingUpdates skips any keys at the current database iterator position
  // that are being updated by the transaction.  The forwards flag indicates the
  // direction the cursor is moving.