-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reverted KffFile back to using RandomAccessFile for file I/O, but now synchronizing access to its use #605
Reverted KffFile back to using RandomAccessFile for file I/O, but now synchronizing access to its use #605
Conversation
… synchronizing access to its use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might not be the best review on this.
But I am able to understand the changes and it performs as I would expect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just as an FYI ... the calculations in this class use integers instead of longs, so there is an implied assumption that the file is no bigger than 2^31.
9fb3be2
to
bc26bde
Compare
…yte[]) to prevent bailing on incomplete reads.
bc26bde
to
22ece71
Compare
Verified that KffFileTest.testConcurrentKffFileCheckCalls() passes with synchronization in place, fails with the synchronization disabled