You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Module auxiliary data isn't written to AOF files when there's no rdb-preamble to the AOF.
This means modules can lose their aux data.
Possible solutions:
If a loaded module implements the aof_rewrite callback then implicitly ignore the aof-use-rdb-preamble config option and treat it as yes all the time.
Add another callback to modules that's called before/after the all the aof_rewrite callbacks for all the keys. In this callback the module can write a set of commands to the aof to store initialize whatever aux data it needs. This can also be done by extending the when option of the aux_load and aux_save callbacks to indicate REDISMODULE_AUX_BEFORE_AOFRW and REDISMODULE_AUX_AFTER_AOFRW.
The text was updated successfully, but these errors were encountered:
in 1 i guess the conditions are either:
module doen't implement the aof_rewrite callback at all.
it does implement the aof_rewrite, but also implements the aux_save callback.
i.e. in both cases we may want to switch to preamble
Sounds right. Although I think 2 might be cleaner.
Module auxiliary data isn't written to AOF files when there's no rdb-preamble to the AOF.
This means modules can lose their aux data.
Possible solutions:
aof_rewrite
callback then implicitly ignore theaof-use-rdb-preamble
config option and treat it asyes
all the time.aof_rewrite
callbacks for all the keys. In this callback the module can write a set of commands to the aof to store initialize whatever aux data it needs. This can also be done by extending thewhen
option of theaux_load
andaux_save
callbacks to indicateREDISMODULE_AUX_BEFORE_AOFRW
andREDISMODULE_AUX_AFTER_AOFRW
.The text was updated successfully, but these errors were encountered: