提交 8e3b6f15 authored 作者: noelgrandin's avatar noelgrandin

remove unused parameter "logPos" in method PageStore#redo(int tableId, Row row, boolean add)

上级 d2b963d2
...@@ -315,7 +315,7 @@ public class PageLog { ...@@ -315,7 +315,7 @@ public class PageLog {
if (trace.isDebugEnabled()) { if (trace.isDebugEnabled()) {
trace.debug("log redo + table: " + tableId + " s: " + sessionId + " " + row); trace.debug("log redo + table: " + tableId + " s: " + sessionId + " " + row);
} }
store.redo(pos, tableId, row, true); store.redo(tableId, row, true);
} else { } else {
if (trace.isDebugEnabled()) { if (trace.isDebugEnabled()) {
trace.debug("log ignore s: " + sessionId + " + table: " + tableId + " " + row); trace.debug("log ignore s: " + sessionId + " + table: " + tableId + " " + row);
...@@ -331,7 +331,7 @@ public class PageLog { ...@@ -331,7 +331,7 @@ public class PageLog {
if (trace.isDebugEnabled()) { if (trace.isDebugEnabled()) {
trace.debug("log redo - table: " + tableId + " s:" + sessionId + " key: " + key); trace.debug("log redo - table: " + tableId + " s:" + sessionId + " key: " + key);
} }
store.redoDelete(pos, tableId, key); store.redoDelete(tableId, key);
} else { } else {
if (trace.isDebugEnabled()) { if (trace.isDebugEnabled()) {
trace.debug("log ignore s: " + sessionId + " - table: " + tableId + " " + key); trace.debug("log ignore s: " + sessionId + " - table: " + tableId + " " + key);
......
...@@ -1495,26 +1495,24 @@ public class PageStore implements CacheWriter { ...@@ -1495,26 +1495,24 @@ public class PageStore implements CacheWriter {
/** /**
* Redo a delete in a table. * Redo a delete in a table.
* *
* @param logPos the redo log position
* @param tableId the object id of the table * @param tableId the object id of the table
* @param key the key of the row to delete * @param key the key of the row to delete
*/ */
void redoDelete(int logPos, int tableId, long key) { void redoDelete(int tableId, long key) {
Index index = metaObjects.get(tableId); Index index = metaObjects.get(tableId);
PageDataIndex scan = (PageDataIndex) index; PageDataIndex scan = (PageDataIndex) index;
Row row = scan.getRowWithKey(key); Row row = scan.getRowWithKey(key);
redo(logPos, tableId, row, false); redo(tableId, row, false);
} }
/** /**
* Redo a change in a table. * Redo a change in a table.
* *
* @param logPos the redo log position
* @param tableId the object id of the table * @param tableId the object id of the table
* @param row the row * @param row the row
* @param add true if the record is added, false if deleted * @param add true if the record is added, false if deleted
*/ */
void redo(int logPos, int tableId, Row row, boolean add) { void redo(int tableId, Row row, boolean add) {
if (tableId == META_TABLE_ID) { if (tableId == META_TABLE_ID) {
if (add) { if (add) {
addMeta(row, systemSession, true); addMeta(row, systemSession, true);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论