Commit b97065d0 authored by Andre Freyssinet's avatar Andre Freyssinet

Adds a log message after DB reconnection.

parent 54a12650
...@@ -522,6 +522,11 @@ public abstract class DBTransaction extends AbstractTransaction implements DBTra ...@@ -522,6 +522,11 @@ public abstract class DBTransaction extends AbstractTransaction implements DBTra
if (lastexc != null) if (lastexc != null)
throw new IOException(lastexc.getMessage()); throw new IOException(lastexc.getMessage());
if (startRetry != 0) {
// There was a reconnection process in progress, logs a message to signify its end.
logmon.log(BasicLevel.WARN, "DBTransaction, commit: reconnected");
}
// All operations are committed in database, frees them and clear the log. // All operations are committed in database, frees them and clear the log.
log.forEach((k, op) -> { op.free(); }); log.forEach((k, op) -> { op.free(); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment