Skip to content

Conversation

@pgebheim
Copy link

@pgebheim pgebheim commented Mar 8, 2012

The current logic tests to see if our seek moves the position between chunks, if this is the case, it first saves the current chunk if in write mode, and then loads the next necessary chunk. However, if the file is opened in read mode, the logic is missing, so the callback is never called.

I'm patching this by pulling the chunk loading into a function which gets called either from within the callback to the chunk save, or the else condition.

@christkv
Copy link
Contributor

christkv commented Mar 8, 2012

can you provide a test to cover the scenario then I'll merge it in

@pgebheim
Copy link
Author

pgebheim commented Mar 8, 2012

Can do.

@christkv
Copy link
Contributor

merged in changes using cherry-pick so they are in the commit log :)

@christkv christkv closed this Mar 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants