Skip to content

Commit

Permalink
additional log to indicate that database can take a while to compact …
Browse files Browse the repository at this point in the history
…when opening an existing one. (hyperledger#5359)

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
  • Loading branch information
daniellehrner authored Apr 20, 2023
1 parent 839bddc commit 57b5198
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,10 @@ private int readDatabaseVersion(final BesuConfiguration commonConfiguration) thr
final int databaseVersion;
if (databaseExists) {
databaseVersion = DatabaseMetadata.lookUpFrom(dataDir).getVersion();
LOG.info("Existing database detected at {}. Version {}", dataDir, databaseVersion);
LOG.info(
"Existing database detected at {}. Version {}. Compacting database...",
dataDir,
databaseVersion);
} else {
databaseVersion = commonConfiguration.getDatabaseVersion();
LOG.info("No existing database detected at {}. Using version {}", dataDir, databaseVersion);
Expand Down

0 comments on commit 57b5198

Please sign in to comment.