Skip to content

Commit e1cb53b

Browse files
Fixed timestamp extraction
Summary: The JSON key was changes from "timestamps" to "ts" to save space in binlogs. We forgot to make the key change in extraction function. Reviewed By: yashtc Differential Revision: D9544555 fbshipit-source-id: 6626b21
1 parent de1e8c7 commit e1cb53b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/log_event.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -15078,7 +15078,8 @@ inline ulonglong Rows_query_log_event::extract_last_timestamp() const
1507815078
return 0;
1507915079
}
1508015080

15081-
auto timestamps= pt.get_child("timestamps", boost::property_tree::ptree());
15081+
auto timestamps= pt.get_child("ts", boost::property_tree::ptree());
15082+
DBUG_ASSERT(!timestamps.empty());
1508215083
return timestamps.empty() ? 0 :
1508315084
timestamps.back().second.get_value<ulonglong>();
1508415085
}

0 commit comments

Comments
 (0)