Skip to content

Commit

Permalink
Set log level to DEBUG for fuzzy checkpoint logs
Browse files Browse the repository at this point in the history
  • Loading branch information
luigidellaquila committed Jan 17, 2019
1 parent e6d3f40 commit 461a6d1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4112,20 +4112,20 @@ protected void makeFuzzyCheckpoint() {
fuzzySegment = endLSN.getSegment();
}

OLogManager.instance().infoNoDb(this,
OLogManager.instance().debugNoDb(this,
"Before fuzzy checkpoint: min LSN segment is " + minLSNSegment + ", WAL begin is " + beginLSN + ", WAL end is " + endLSN
+ ", fuzzy segment is " + fuzzySegment);
+ ", fuzzy segment is " + fuzzySegment, null);

if (fuzzySegment > beginLSN.getSegment() && beginLSN.getSegment() < endLSN.getSegment()) {
OLogManager.instance().infoNoDb(this, "Making fuzzy checkpoint");
OLogManager.instance().debugNoDb(this, "Making fuzzy checkpoint", null);
writeCache.makeFuzzyCheckpoint(fuzzySegment);

beginLSN = writeAheadLog.begin();
endLSN = writeAheadLog.end();

OLogManager.instance().infoNoDb(this, "After fuzzy checkpoint: WAL begin is " + beginLSN + " WAL end is " + endLSN);
OLogManager.instance().debugNoDb(this, "After fuzzy checkpoint: WAL begin is " + beginLSN + " WAL end is " + endLSN, null);
} else {
OLogManager.instance().infoNoDb(this, "No reason to make fuzzy checkpoint");
OLogManager.instance().debugNoDb(this, "No reason to make fuzzy checkpoint", null);
}
} catch (IOException ioe) {
throw OException.wrapException(new OIOException("Error during fuzzy checkpoint"), ioe);
Expand Down

0 comments on commit 461a6d1

Please sign in to comment.