(CommitUpdateCommand cmd)
| 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 |
no test coverage detected