MCPcopy Create free account
hub / github.com/apache/solr / postCommit

Method postCommit

solr/core/src/java/org/apache/solr/update/UpdateLog.java:1081–1098  ·  view source on GitHub ↗
(CommitUpdateCommand cmd)

Source from the content-addressed store, hash-verified

1079 id++;
1080 }
1081 }
1082
1083 public void postCommit(CommitUpdateCommand cmd) {
1084 synchronized (this) {
1085 if (debug) {
1086 log.debug("TLOG: postCommit");
1087 }
1088 if (prevTlog != null) {
1089 // if we made it through the commit, write a commit command to the log
1090 // TODO: check that this works to cap a tlog we were using to buffer so we don't replay on
1091 // startup.
1092 prevTlog.writeCommit(cmd);
1093
1094 addOldLog(prevTlog, true);
1095 // the old log list will decref when no longer needed
1096 // prevTlog.decref();
1097 prevTlog = null;
1098 }
1099 }
1100 }
1101

Callers 2

preCommitMethod · 0.95

Calls 3

addOldLogMethod · 0.95
debugMethod · 0.80
writeCommitMethod · 0.80

Tested by

no test coverage detected