Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ public synchronized void resume(ObDirectLoadStatementExecutionId executionId)
try {
if (NodeRole.P2P == nodeRole) {
compareAndSetState(NONE, LOADING, "resume in P2P mode");
startHeartBeat();
} else {
nodeRole = NodeRole.WRITE_ONLY;
compareAndSetState(NONE, LOADING_ONLY, "resume");
Expand All @@ -208,6 +207,9 @@ public synchronized void resume(ObDirectLoadStatementExecutionId executionId)
tableId = executionId.getTableId();
taskId = executionId.getTaskId();
svrAddr = executionId.getSvrAddr();
if (NodeRole.P2P == nodeRole) {
startHeartBeat();
}
}

public void close() {
Expand Down