Skip to content

Commit

Permalink
0002107: Initial load extract in background can fail when purge is se…
Browse files Browse the repository at this point in the history
…t aggressively
  • Loading branch information
chenson42 committed Dec 19, 2014
1 parent 1a19f7f commit caf836e
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -31,7 +31,8 @@ public PurgeServiceSqlMap(IDatabasePlatform platform, Map<String, String> replac

// @formatter:off

putSql("deleteExtractRequestSql", "delete from $(extract_request) where status=? and last_update_time < ?");
putSql("deleteExtractRequestSql", "delete from $(extract_request) where status=? and last_update_time < ? and "
+ "0 = (select count(1) from sym_outgoing_batch where status != 'OK' and batch_id between start_batch_id and end_batch_id)");

putSql("deleteRegistrationRequestSql", "delete from $(registration_request) where status in (?,?,?) and last_update_time < ?");

Expand Down

0 comments on commit caf836e

Please sign in to comment.