Skip to content

Commit 3238409

Browse files
committed
Fixing expireAt_long
1 parent 763fa38 commit 3238409

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/picoded/dstack/mongodb/MongoDB_KeyValueMap.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,17 +262,17 @@ public MutablePair<String, Long> getValueExpiryRaw(String key, long now) {
262262
}
263263

264264
// No valid value found, return null
265-
if (expireAt < 0) {
265+
if (expireAt_long < 0) {
266266
return null;
267267
}
268268

269269
// Expired value, return null
270-
if (expireAt != 0 && expireAt < now) {
270+
if (expireAt_long != 0 && expireAt_long < now) {
271271
return null;
272272
}
273273

274274
// Get the value, and return the pair
275-
return new MutablePair<String, Long>(val, expireAt);
275+
return new MutablePair<String, Long>(val, expireAt_long);
276276
}
277277

278278
/**

0 commit comments

Comments
 (0)