Repository navigation
Send Load Version response after a restored pool is parsed - #766
Conversation
…emory finishes parsing
|
Note: When the load version is requested with no string (all blanks), we are supposed to send last stored version by default as per the standard but we are not doing that here for now. |
GwnDaan
left a comment
There was a problem hiding this comment.
Nice work!
One thing I noticed is that we are not setting the parsing indicator in the VT status message while any relevant pool is being parsed, and clear it only after the corresponding response has been sent.
Would it be easy to add to this PR or do you prefer a separate PR? I don't mind
Yes, I was thinking about that in next PR. |
|



Describe your changes
Part of #765.
Before this, the server never answered a pool restored by Load Version (0xD1) with a Load Version response. It sent an End of Object Pool response instead, or left the response to the application.
update()now sends the Load Version response once the restored pool finishes parsing: no error on success, and an error bit on a parse failure or a missing working set object. That bit is the file system error / pool data corruption bit on VT4+ and the any other error bit on VT3.LoadVersionErrorBitenum so the error bits have names instead of magic numbers.How has this been tested?
6 new tests in
test/vt_server_tests.cpp.