Commit 911d4d5a authored by Nils Goroll's avatar Nils Goroll

Initialize wrk->lastused if still NaN

Fixes #1917
parent 76315ee5
......@@ -41,6 +41,8 @@
#include "vsb.h"
#include "vtim.h"
/*-------------------------------------------------------------------*/
static struct storage *
......@@ -498,8 +500,11 @@ sml_bocdone(struct worker *wrk, struct objcore *oc, struct boc *boc)
sml_stv_free(stv, st);
}
if (stv->lru != NULL)
if (stv->lru != NULL) {
if (isnan(wrk->lastused))
wrk->lastused = VTIM_real();
LRU_Add(oc, wrk->lastused); // approx timestamp is OK
}
}
static const void * __match_proto__(objgetattr_f)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment