Skip to content

Commit

Permalink
get batch range for OK batches, because old non-OK batches will make …
Browse files Browse the repository at this point in the history
…the range larger than it needs to be
  • Loading branch information
erilong committed Sep 26, 2008
1 parent effd095 commit 6d8fa1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions symmetric/src/main/resources/sql/purge-service-sql.xml
Expand Up @@ -11,7 +11,7 @@
<entry key="selectOutgoingBatchRangeSql">
<value>
select min(batch_id), max(batch_id) from ${sync.table.prefix}_outgoing_batch where
create_time &lt; ?
create_time &lt; ? and status = 'OK'
</value>
</entry>
<entry key="deleteOutgoingBatchSql">
Expand Down Expand Up @@ -48,7 +48,7 @@
<entry key="selectIncomingBatchRangeSql">
<value>
select node_id, min(batch_id), max(batch_id) from ${sync.table.prefix}_incoming_batch where
create_time &lt; ? group by node_id
create_time &lt; ? and status = 'OK' group by node_id
</value>
</entry>
<entry key="deleteIncomingBatchSql">
Expand Down

0 comments on commit 6d8fa1b

Please sign in to comment.