Skip to content
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

os/bluestore: add a boundary check of cache read #10349

Merged
merged 1 commit into from Jul 26, 2016

Conversation

xiexingguo
Copy link
Member

@xiexingguo xiexingguo commented Jul 19, 2016

By trapping the "==" case and break, we can finish
the cache read just in time. As a result, we can avoid
two extra operations(adjusting "offset" and "length") and
the final loop check.

Since this is one of key methods of cache, it deserves this
fix.

Signed-off-by: xie xingguo xie.xingguo@zte.com.cn

By trapping the "==" case and break, we can finish
the cache read just in time. As a result, we can avoid
two extra operations(adjusting "offset" and "length") and
the final loop check.

Since this is one of key methods of cache, it deserves this
fix.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
@xiexingguo xiexingguo force-pushed the xxg-wip-bluestore-2016-07-19 branch from ab58efe to 3bc3174 Compare July 20, 2016 02:42
@xiexingguo xiexingguo changed the title os/bluestore: fix a boundary check of cache read os/bluestore: add a boundary check of cache read Jul 20, 2016
@xiexingguo
Copy link
Member Author

2016-07-20 17:58:29.861655 7f3524c71680 1 bluestore(store_test_temp_dir) fsck finish with 0 errors
[ OK ] ObjectStore/StoreTest.TooManyBlobsTest/2 (22225 ms)
[----------] 59 tests from ObjectStore/StoreTest (2145269 ms total)

[----------] Global test environment tear-down
[==========] 59 tests from 1 test case ran. (2145269 ms total)
[ PASSED ] 59 tests.

@markhpc markhpc merged commit 796c29e into ceph:master Jul 26, 2016
@xiexingguo xiexingguo deleted the xxg-wip-bluestore-2016-07-19 branch July 26, 2016 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants