Commit 8622930d authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Minor change to SetExpiration() to make sure we cache it in the

proper format (datetime, not int).
parent 70d5ea50
......@@ -500,6 +500,14 @@ sub SetExpiration($$)
return -1
if (!$query_result);
# Has to be in the correct format.
$query_result =
DBQueryWarn("select expires from geni_slices where uuid='$uuid'");
return -1
if (!$query_result || !$query_result->numrows);
($expires) = $query_result->fetchrow_array();
$self->{'SLICE'}->{'expires'} = $expires;
return 0;
}
......
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