Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Updated a few bug fixes as per discussion w/ bpross
Browse files Browse the repository at this point in the history
  • Loading branch information
isuftin committed Oct 31, 2013
1 parent 17bb559 commit a8ad31c
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -108,7 +108,7 @@ public class PostgresDatabase extends AbstractDatabase {
private PostgresDatabase() {
try {
Class.forName("org.postgresql.Driver");
PostgresDatabase.connectionURL = "jdbc:postgresql:" + getDatabasePath() + File.separator + getDatabaseName();
PostgresDatabase.connectionURL = "jdbc:postgresql:" + getDatabasePath() + "/" + getDatabaseName();
LOGGER.debug("Database connection URL is: " + PostgresDatabase.connectionURL);

// Create lock object
Expand All @@ -121,7 +121,7 @@ private PostgresDatabase() {
long thresholdMillis = propertyUtil.extractPeriodAsMillis(KEY_DATABASE_WIPE_THRESHOLD, DEFAULT_DATABASE_WIPE_THRESHOLD);

wipeTimer = new Timer(getClass().getSimpleName() + " Postgres Wiper", true);
wipeTimer.scheduleAtFixedRate(new PostgresDatabase.WipeTimerTask(thresholdMillis), 0, periodMillis);
wipeTimer.scheduleAtFixedRate(new PostgresDatabase.WipeTimerTask(thresholdMillis), 15000, periodMillis);
LOGGER.info("Started {} Postgres wiper timer; period {} ms, threshold {} ms",
new Object[]{getDatabaseName(), periodMillis, thresholdMillis});
} else {
Expand Down Expand Up @@ -327,7 +327,7 @@ private static boolean createResultTable() {

meta = PostgresDatabase.conn.getMetaData();

rs = meta.getTables(null, null, "RESULTS", new String[]{"TABLE"});
rs = meta.getTables(null, null, "results", new String[]{"TABLE"});
if (rs.next()) {
LOGGER.info("Succesfully created table RESULTS.");
} else {
Expand Down

0 comments on commit a8ad31c

Please sign in to comment.