From f87974fa0b0739fd8625bf4827b1e99eab842d25 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 14 Jul 2018 01:40:18 +0300 Subject: [PATCH] Remove some outdated TODO. GitOrigin-RevId: 77e1903177bbb83834c86391ec10deb7b4de4e47 --- tddb/td/db/binlog/Binlog.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/tddb/td/db/binlog/Binlog.cpp b/tddb/td/db/binlog/Binlog.cpp index 28aab4d9..c6f00d47 100644 --- a/tddb/td/db/binlog/Binlog.cpp +++ b/tddb/td/db/binlog/Binlog.cpp @@ -496,7 +496,6 @@ Status Binlog::load_binlog(const Callback &callback, const Callback &debug_callb } } } else { - // TODO(now): fix bug TRY_STATUS(fd_.flush_read(max(need_size, static_cast(4096)))); buffer_reader_.sync_with_writer(); if (byte_flow_flag_) { @@ -635,7 +634,6 @@ void Binlog::do_reindex() { auto finish_events = fd_events_; CHECK(fd_size_ == file_size(path_)) << fd_size_ << ' ' << file_size(path_) << ' ' << fd_events_ << ' ' << path_; - // TODO: print warning only if time or ratio is suspicious double ratio = static_cast(start_size) / static_cast(finish_size + 1); LOG(INFO) << "regenerate index " << tag("name", path_) << tag("time", format::as_time(finish_time - start_time)) << tag("before_size", format::as_size(start_size)) << tag("after_size", format::as_size(finish_size))