Skip to content

Commit aeab69b

Browse files
author
Henrik Johansson
authored
Merge pull request #35 from fruch/fix_batch_create
Fix batch creation to match new gocql
2 parents 2c94d92 + 6404bd7 commit aeab69b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modes.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ func DoBatchedWrites(session *gocql.Session, resultChannel chan Result, workload
438438
request := fmt.Sprintf("INSERT INTO %s.%s (pk, ck, v) VALUES (?, ?, ?)", keyspaceName, tableName)
439439

440440
RunTest(resultChannel, workload, rateLimiter, func(rb *ResultBuilder) (error, time.Duration) {
441-
batch := gocql.NewBatch(gocql.UnloggedBatch)
441+
batch := session.NewBatch(gocql.UnloggedBatch)
442442
batchSize := 0
443443

444444
currentPk := workload.NextPartitionKey()

0 commit comments

Comments
 (0)