Skip to content

Commit 241de58

Browse files
committed
roachtest: fix tpcc/large-schema-benchmark load bug
Previously, changes to optimize the post load process for the large schema benchmark had a bug where the search_path was being updated incorrectly on the connection pool. The code was intended to updated the search_path on the connection on the go routines. This patch fixes the incorrect behavior. Fixes: #151285 Fixes: #151284 Fixes: #151283 Release note: None
1 parent e652b8a commit 241de58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/workload/tpcc/tpcc_multi_db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ func (t *tpccMultiDB) Hooks() workload.Hooks {
447447
if _, err := conn.ExecContext(ctx, "USE $1", dbName.Catalog()); err != nil {
448448
return err
449449
}
450-
if _, err := db.ExecContext(ctx, fmt.Sprintf("SET search_path = %s", dbName.Schema())); err != nil {
450+
if _, err := conn.ExecContext(ctx, fmt.Sprintf("SET search_path = %s", dbName.Schema())); err != nil {
451451
return err
452452
}
453453
return t.tpcc.postLoadImpl(ctx, conn)

0 commit comments

Comments
 (0)