sewenew / redis-protobuf

Redis module for reading and writing Protobuf messages
Apache License 2.0
203 stars 22 forks source link

Add an option to discard unknown message when loading RDB file #7

Open sewenew opened 5 years ago

sewenew commented 5 years ago

When loading RDB file, if we met some unknown Protobuf message, e.g. the .proto file has been remove from the given directory, redis-protobuf fails to start.

Instead, we can add an option for the loadmodule directive, and this option decides whether we should stop loading or just discard these unknown messages and start normally.