mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
remove unused
This commit is contained in:
@@ -7,8 +7,6 @@ import java.sql.Statement;
|
|||||||
import java.util.concurrent.atomic.AtomicLong;
|
import java.util.concurrent.atomic.AtomicLong;
|
||||||
|
|
||||||
import com.taobao.tddl.dbsync.binlog.DirectLogFetcher;
|
import com.taobao.tddl.dbsync.binlog.DirectLogFetcher;
|
||||||
import com.taobao.tddl.dbsync.binlog.LogContext;
|
|
||||||
import com.taobao.tddl.dbsync.binlog.LogDecoder;
|
|
||||||
import com.taobao.tddl.dbsync.binlog.LogEvent;
|
import com.taobao.tddl.dbsync.binlog.LogEvent;
|
||||||
|
|
||||||
public class FetcherPerformanceTest {
|
public class FetcherPerformanceTest {
|
||||||
@@ -31,10 +29,7 @@ public class FetcherPerformanceTest {
|
|||||||
long last = 0;
|
long last = 0;
|
||||||
long end = 0;
|
long end = 0;
|
||||||
|
|
||||||
LogDecoder decoder = new LogDecoder(LogEvent.UNKNOWN_EVENT, LogEvent.ENUM_END_EVENT);
|
|
||||||
LogContext context = new LogContext();
|
|
||||||
while (fetcher.fetch()) {
|
while (fetcher.fetch()) {
|
||||||
decoder.decode(fetcher, context);
|
|
||||||
sum.incrementAndGet();
|
sum.incrementAndGet();
|
||||||
long current = sum.get();
|
long current = sum.get();
|
||||||
if (current - last >= 100000) {
|
if (current - last >= 100000) {
|
||||||
|
|||||||
Reference in New Issue
Block a user