Skip to content

Commit

Permalink
Revert "- config yaml for pg."
Browse files Browse the repository at this point in the history
This reverts commit c7ad039.
  • Loading branch information
Sonal Agarwal committed Jul 2, 2024
1 parent c7ad039 commit 0ad0df7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 63 deletions.
56 changes: 0 additions & 56 deletions config/workload_all_pg.xml

This file was deleted.

8 changes: 1 addition & 7 deletions src/com/oltpbenchmark/api/BenchmarkModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,11 @@ public final Connection makeConnection() throws SQLException {
}

int r = dataSourceCounter.getAndIncrement() % workConf.getNodes().size();
String url_db = "";
if(workConf.getDBName()=="yugabyte")
url_db = "yugabytedb";
else if(workConf.getDBName()=="postgres")
url_db = "postgresql";
String connectStr;
if (workConf.getJdbcURL() != null && workConf.getJdbcURL().length()>0) {
connectStr=workConf.getJdbcURL();
} else {
connectStr = String.format("jdbc:%s://%s:%d/%s",
workConf.getDBName(),
connectStr = String.format("jdbc:yugabytedb://%s:%d/%s",
workConf.getNodes().get(r),
workConf.getPort(),
workConf.getDBName());
Expand Down

0 comments on commit 0ad0df7

Please sign in to comment.