mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed issue #1047 , support snapshot expire
This commit is contained in:
@@ -36,10 +36,10 @@
|
||||
</delete>
|
||||
|
||||
|
||||
<delete id="deleteByGmtModified" parameterClass="java.util.Map">
|
||||
<delete id="deleteByTimestamp" parameterClass="java.util.Map">
|
||||
<![CDATA[
|
||||
delete from meta_history
|
||||
where gmt_modified < timestamp(#timestamp#)
|
||||
where destination=#destination# and binlog_timestamp < #timestamp#
|
||||
]]>
|
||||
</delete>
|
||||
</sqlMap>
|
||||
@@ -54,10 +54,10 @@
|
||||
where destination=#destination#
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByGmtModified" parameterClass="java.util.Map">
|
||||
<delete id="deleteByTimestamp" parameterClass="java.util.Map">
|
||||
<![CDATA[
|
||||
delete from meta_snapshot
|
||||
where gmt_modified < timestamp(#timestamp#)
|
||||
where destination=#destination# and binlog_timestamp < #timestamp# and binlog_timestamp > 0
|
||||
]]>
|
||||
</delete>
|
||||
</sqlMap>
|
||||
Reference in New Issue
Block a user