Merge pull request #1377 from telomir/jetty-9.4.x

MongoSessionDataStore: fix for scavenging of local immortal sessions
This commit is contained in:
Jan Bartel 2017-03-08 17:15:13 +11:00 committed by GitHub
commit 82413e1eeb
1 changed files with 1 additions and 2 deletions

View File

@ -366,8 +366,7 @@ public class MongoSessionDataStore extends NoSqlSessionDataStore
//these candidates will be for our node
BasicDBObject query = new BasicDBObject();
query.append(__ID,new BasicDBObject("$in", candidates));
query.append(__EXPIRY, new BasicDBObject("$gt", 0));
query.append(__EXPIRY, new BasicDBObject("$lt", upperBound));
query.append(__EXPIRY, new BasicDBObject("$gt", 0).append("$lt", upperBound));
DBCursor verifiedExpiredSessions = null;
try