Skip to content

Commit

Permalink
use internal random number generator + tests
Browse files Browse the repository at this point in the history
added client.ListUDF() and client.RemoveUDF() and tests
wait for migrations to finish before query, scan, batch and executeUDF commands
major code clean up
  • Loading branch information
khaf committed Sep 4, 2014
1 parent b5b1d0e commit 3f3d607
Show file tree
Hide file tree
Showing 46 changed files with 1,265 additions and 811 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ install:
- go get github.com/onsi/ginkgo/ginkgo
- go get github.com/onsi/gomega
- go get code.google.com/p/go.tools/cmd/cover
- wget -O aerospike-server.tgz http://aerospike.com/download/server/3.3.5/artifact/tgz
- wget -O aerospike-server.tgz http://aerospike.com/download/server/3.3.12/artifact/tgz
- tar xvzf aerospike-server.tgz
- cp -f .travis/aerospike.conf ./aerospike-server/share/etc
- cd aerospike-server
Expand Down
2 changes: 0 additions & 2 deletions batch_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ type baseMultiCommand struct {
Records chan *Record
Errors chan error

conn *Connection
valid bool //= true
mutex sync.RWMutex
}
Expand All @@ -59,7 +58,6 @@ func (cmd *baseMultiCommand) getNode(ifc command) (*Node, error) {
func (cmd *baseMultiCommand) parseResult(ifc command, conn *Connection) error {
// Read socket into receive buffer one record at a time. Do not read entire receive size
// because the receive buffer would be too big.
cmd.conn = conn
status := true

for status {
Expand Down
7 changes: 3 additions & 4 deletions batch_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ func (bi *batchItem) AddDuplicate(idx int) {
func (bi *batchItem) GetIndex() int {
if bi.duplicates == nil {
return bi.index
} else {
r := bi.duplicates[bi.index]
bi.index++
return r
}
r := bi.duplicates[bi.index]
bi.index++
return r
}
Loading

0 comments on commit 3f3d607

Please sign in to comment.