Skip to content

There no lua api to overwrite a pb file at runtime. #11

Closed
yihuang opened this Issue Mar 24, 2013 · 2 comments

2 participants

@yihuang
yihuang commented Mar 24, 2013

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.

@yihuang
yihuang commented Mar 24, 2013

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?

@cloudwu
Owner
cloudwu commented Mar 25, 2013

Yes. You can use a new struct pbc, and register again.

@cloudwu cloudwu closed this Mar 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.