Skip to content

Commit

Permalink
0002959: BatchStagingManager deleting incoming files from staging that
Browse files Browse the repository at this point in the history
are not yet processed
  • Loading branch information
chenson42 committed Jan 12, 2017
1 parent 250a7da commit 92f3268
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public long clean(long ttlInMs) {
* resource could have deleted itself between the time the keys
* were cloned and now
*/
if (resource != null) {
if (resource != null && !resource.isInUse()) {
boolean resourceIsOld = (System.currentTimeMillis() - resource.getLastUpdateTime()) > ttlInMs;
if (path[0].equals(STAGING_CATEGORY_OUTGOING)) {
try {
Expand Down

0 comments on commit 92f3268

Please sign in to comment.