aboutsummaryrefslogtreecommitdiffhomepage
path: root/tddb
diff options
context:
space:
mode:
Diffstat (limited to 'tddb')
-rw-r--r--tddb/td/db/binlog/BinlogEvent.cpp4
-rw-r--r--tddb/td/db/binlog/binlog_dump.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/tddb/td/db/binlog/BinlogEvent.cpp b/tddb/td/db/binlog/BinlogEvent.cpp
index dea997d4b..9ad4c5d65 100644
--- a/tddb/td/db/binlog/BinlogEvent.cpp
+++ b/tddb/td/db/binlog/BinlogEvent.cpp
@@ -23,7 +23,7 @@ void BinlogEvent::init(string raw_event) {
flags_ = parser.fetch_int();
extra_ = static_cast<uint64>(parser.fetch_long());
CHECK(size_ >= MIN_SIZE);
- parser.fetch_string_raw<Slice>(size_ - MIN_SIZE); // skip data
+ parser.template fetch_string_raw<Slice>(size_ - MIN_SIZE); // skip data
crc32_ = static_cast<uint32>(parser.fetch_int());
raw_event_ = std::move(raw_event);
}
@@ -43,7 +43,7 @@ Status BinlogEvent::validate() const {
return Status::Error(PSLICE() << "Size of event changed: " << tag("was", size_) << tag("now", size)
<< tag("real size", raw_event_.size()));
}
- parser.fetch_string_raw<Slice>(size_ - TAIL_SIZE - sizeof(int)); // skip
+ parser.template fetch_string_raw<Slice>(size_ - TAIL_SIZE - sizeof(int)); // skip
auto stored_crc32 = static_cast<uint32>(parser.fetch_int());
auto calculated_crc = crc32(Slice(as_slice(raw_event_).data(), size_ - TAIL_SIZE));
if (calculated_crc != crc32_ || calculated_crc != stored_crc32) {
diff --git a/tddb/td/db/binlog/binlog_dump.cpp b/tddb/td/db/binlog/binlog_dump.cpp
index 194bf8460..050b7b99b 100644
--- a/tddb/td/db/binlog/binlog_dump.cpp
+++ b/tddb/td/db/binlog/binlog_dump.cpp
@@ -125,7 +125,7 @@ int main(int argc, char *argv[]) {
info[0].compressed_size += event.raw_event_.size();
info[event.type_].compressed_size += event.raw_event_.size();
if (event.type_ == ConfigPmcMagic || event.type_ == BinlogPmcMagic) {
- auto key = td::TlParser(event.get_data()).fetch_string<td::Slice>();
+ auto key = td::TlParser(event.get_data()).template fetch_string<td::Slice>();
info[event.type_].compressed_trie.add(key);
}
},
@@ -134,7 +134,7 @@ int main(int argc, char *argv[]) {
info[0].full_size += event.raw_event_.size();
info[event.type_].full_size += event.raw_event_.size();
if (event.type_ == ConfigPmcMagic || event.type_ == BinlogPmcMagic) {
- auto key = td::TlParser(event.get_data()).fetch_string<td::Slice>();
+ auto key = td::TlParser(event.get_data()).template fetch_string<td::Slice>();
info[event.type_].trie.add(key);
}
LOG(PLAIN) << "LogEvent[" << td::tag("event_id", td::format::as_hex(event.id_))