mirror of
https://github.com/fluencelabs/redis
synced 2025-04-25 18:42:13 +00:00
fixed an alignment problem with time_t is 32 bit, long is 64 bit, and arch is sparc or any other where unaligned accesses will result to sigbus
This commit is contained in:
parent
fdc0bde935
commit
144a5e72f2
2
src/db.c
2
src/db.c
@ -478,7 +478,7 @@ int expireIfNeeded(redisDb *db, robj *key) {
|
|||||||
|
|
||||||
void expireGenericCommand(redisClient *c, robj *key, robj *param, long offset) {
|
void expireGenericCommand(redisClient *c, robj *key, robj *param, long offset) {
|
||||||
dictEntry *de;
|
dictEntry *de;
|
||||||
time_t seconds;
|
long seconds;
|
||||||
|
|
||||||
if (getLongFromObjectOrReply(c, param, &seconds, NULL) != REDIS_OK) return;
|
if (getLongFromObjectOrReply(c, param, &seconds, NULL) != REDIS_OK) return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user