Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Bartel2012-10-29 03:44:12 +0000
committerJan Bartel2012-10-29 03:44:12 +0000
commita8a015d8c209ac3252ba20bb50075a4ff93d2fb3 (patch)
tree050fc28c071974a2c16cfd7a067c7dea666ee861 /jetty-nosql
parent4c08f90a3cc76047c60ec7ea3a67b2990e2cdbf8 (diff)
parent7c03c793d56a622687a7104ea48e135a6899a43f (diff)
downloadorg.eclipse.jetty.project-a8a015d8c209ac3252ba20bb50075a4ff93d2fb3.tar.gz
org.eclipse.jetty.project-a8a015d8c209ac3252ba20bb50075a4ff93d2fb3.tar.xz
org.eclipse.jetty.project-a8a015d8c209ac3252ba20bb50075a4ff93d2fb3.zip
Merge remote-tracking branch 'origin/jetty-7' into jetty-8
Diffstat (limited to 'jetty-nosql')
-rw-r--r--jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/MongoSessionIdManager.java9
1 files changed, 5 insertions, 4 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..a8b5a1c81b 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
@@ -216,7 +216,7 @@ public class MongoSessionIdManager extends AbstractSessionIdManager
BasicDBObject invalidQuery = new BasicDBObject();
invalidQuery.put(MongoSessionManager.__ACCESSED, new BasicDBObject("$lt",System.currentTimeMillis() - _purgeInvalidAge));
- invalidQuery.put(MongoSessionManager.__VALID, __valid_false);
+ invalidQuery.put(MongoSessionManager.__VALID, false);
DBCursor oldSessions = _sessions.find(invalidQuery, new BasicDBObject(MongoSessionManager.__ID, 1));
@@ -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)
{
@@ -410,7 +410,8 @@ public class MongoSessionIdManager extends AbstractSessionIdManager
purge();
}
};
- _purgeTimer.schedule(_purgeTask,_purgeDelay);
+
+ _purgeTimer.schedule(_purgeTask,0,_purgeDelay);
}
}
}

Back to the top