mongodb sessions: fix for expiry of local immortal sessions; condition does not get overwritten by anymore

Signed-off-by: Tilo Zemke <telomir@gmail.com>
This commit is contained in:
Tilo Zemke 2017-03-06 15:45:26 +01:00
parent 4a0dd14a81
commit 80a4aeb2bc
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