Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Bartel2012-10-29 00:29:34 +0000
committerJan Bartel2012-10-29 00:29:34 +0000
commit3ef7a8b2631efbb890d4bf25322f2b67e8eb0d74 (patch)
tree5aa29523818d312115d1d4b0b201fec86d31c629 /jetty-nosql
parent0efdc471db2dce4593faf78c35fdc94f6e410441 (diff)
downloadorg.eclipse.jetty.project-3ef7a8b2631efbb890d4bf25322f2b67e8eb0d74.tar.gz
org.eclipse.jetty.project-3ef7a8b2631efbb890d4bf25322f2b67e8eb0d74.tar.xz
org.eclipse.jetty.project-3ef7a8b2631efbb890d4bf25322f2b67e8eb0d74.zip
393014 Mongodb purgevalid using query for purgeinvalid
Diffstat (limited to 'jetty-nosql')
-rw-r--r--jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/MongoSessionIdManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/MongoSessionIdManager.java b/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/MongoSessionIdManager.java
index 74621901cf..c7785e0026 100644
--- a/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/MongoSessionIdManager.java
+++ b/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/MongoSessionIdManager.java
@@ -234,9 +234,9 @@ public class MongoSessionIdManager extends AbstractSessionIdManager
BasicDBObject validQuery = new BasicDBObject();
validQuery.put(MongoSessionManager.__ACCESSED,new BasicDBObject("$lt",System.currentTimeMillis() - _purgeValidAge));
- validQuery.put(MongoSessionManager.__VALID, __valid_false);
+ validQuery.put(MongoSessionManager.__VALID, true);
- oldSessions = _sessions.find(invalidQuery,new BasicDBObject(MongoSessionManager.__ID,1));
+ oldSessions = _sessions.find(validQuery,new BasicDBObject(MongoSessionManager.__ID,1));
for (DBObject session : oldSessions)
{

Back to the top