v1.18.x
Baris Soner Usakli 11 years ago
parent 4c40ee8e6e
commit 9471fd8e46

@ -231,7 +231,15 @@ Upgrade.upgradeRedis = function(callback) {
function updateKeyToHash(key, next) {
RDB.get(key, function(err, value) {
RDB.hset('global', newKeys[key], value, next);
if(err) {
return next(err);
}
if(value === null) {
RDB.hset('global', newKeys[key], 0, next);
} else {
RDB.hset('global', newKeys[key], value, next);
}
});
}

Loading…
Cancel
Save