@@ -1992,10 +2035,32 @@ int rdbLoadRio(rio *rdb, rdbSaveInfo *rsi, int loading_aof) {
...
@@ -1992,10 +2035,32 @@ int rdbLoadRio(rio *rdb, rdbSaveInfo *rsi, int loading_aof) {
serverLog(LL_WARNING,"The RDB file contains AUX module data I can't load: no matching module '%s'",name);
serverLog(LL_WARNING,"The RDB file contains AUX module data I can't load: no matching module '%s'",name);
exit(1);
exit(1);
}elseif(!rdbCheckMode&&mt!=NULL){
}elseif(!rdbCheckMode&&mt!=NULL){
/* This version of Redis actually does not know what to do
if(!mt->aux_load){
* with modules AUX data... */
/* Module doesn't support AUX. */
serverLog(LL_WARNING,"The RDB file contains AUX module data I can't load for the module '%s'. Probably you want to use a newer version of Redis which implements aux data callbacks",name);
serverLog(LL_WARNING,"The RDB file contains module AUX data, but the module '%s' doesn't seem to support it.",name);
exit(1);
exit(1);
}
RedisModuleIOio;
moduleInitIOContext(io,mt,rdb,NULL);
io.ver=2;
/* Call the rdb_load method of the module providing the 10 bit
* encoding version in the lower 10 bits of the module ID. */
serverLog(LL_WARNING,"The RDB file contains module AUX data for the module type '%s', that the responsible module is not able to load. Check for modules log above for additional clues.",name);
exit(1);
}
if(io.ctx){
moduleFreeContext(io.ctx);
zfree(io.ctx);
}
uint64_teof=rdbLoadLen(rdb,NULL);
if(eof!=RDB_MODULE_OPCODE_EOF){
serverLog(LL_WARNING,"The RDB file contains module AUX data for the module '%s' that is not terminated by the proper module value EOF marker",name);