Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
update uses of SPLIT At
Browse files Browse the repository at this point in the history
  • Loading branch information
RaduBerinde committed Mar 21, 2017
1 parent 65da3bc commit 2992cfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kv/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func setupCockroach(parsedURL *url.URL) (database, error) {
r := rand.New(rand.NewSource(int64(time.Now().UnixNano())))
g := newGenerator(&sequence{val: *writeSeq, seed: *seqSeed})
for i := 0; i < *splits; i++ {
if _, err := db.Exec(`ALTER TABLE test.kv SPLIT AT ($1)`, g.hash(r.Int63())); err != nil {
if _, err := db.Exec(`ALTER TABLE test.kv SPLIT AT VALUES ($1)`, g.hash(r.Int63())); err != nil {
return nil, err
}
}
Expand Down
2 changes: 1 addition & 1 deletion ycsb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ func main() {
if *splits > 0 {
for i := 0; i < *splits; i++ {
key := workers[0].hashKey(uint64(i), *maxWrites)
if _, err := db.Exec(`ALTER TABLE ycsb.usertable SPLIT AT ($1)`, key); err != nil {
if _, err := db.Exec(`ALTER TABLE ycsb.usertable SPLIT AT VALUES ($1)`, key); err != nil {
log.Fatal(err)
}
}
Expand Down

0 comments on commit 2992cfe

Please sign in to comment.