Skip to content

Commit

Permalink
fix:Fixed transaction tagging and reset datafaker version (#1777)
Browse files Browse the repository at this point in the history
Co-authored-by: Knut Olav Løite <[email protected]>
  • Loading branch information
srozsnyai and olavloite authored Oct 11, 2024
1 parent dcebfff commit 3b117c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion samples/quickperf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<dependency>
<groupId>net.datafaker</groupId>
<artifactId>datafaker</artifactId>
<version>2.4.0</version>
<version>1.7.0</version>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ public void run() {
boolean hasResults = statement.execute();
if (!connection.getAutoCommit()) {
connection.commit();
connection
.createStatement()
.execute(String.format("SET %sTRANSACTION_TAG = '%s'", tagPrefix, config.DEFAULT_TAG));
}
long stop = System.nanoTime() - start;

Expand Down

0 comments on commit 3b117c0

Please sign in to comment.