I want to support upgrade my application at runtime, so i need to register a new pb file at runtime, currently, it won't overwrite the old one.
Can you show me what's the best way to implement this? I'm happy to send a patch.
I think I've figured it out, just reload protobuf module, and re-register the pb files works.
I'm not sure is there any drawbacks of this method?
Yes. You can use a new struct pbc, and register again.