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