Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

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

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

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

yihuang opened this issue Mar 24, 2013 · 2 comments

Comments

@yihuang
Copy link

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
Copy link
Author

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
Copy link
Owner

cloudwu commented Mar 25, 2013

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

@cloudwu cloudwu closed this as completed Mar 25, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants