Revision 574b76f710ddd39f432ed3c3651fb4ec3d8ae921 authored by Abhishek Kona on 08 April 2013, 23:28:09 UTC, committed by Abhishek Kona on 08 April 2013, 23:28:09 UTC
Summary:
Transaction Log Iterator did not move to the next file in the series if there was a write batch at the end of the currentFile.
The solution is if the last seq no. of the current file is < RequestedSeqNo. Assume the first seqNo. of the next file has to satisfy the request.

Also major refactoring around the code. Moved opening the logreader to a seperate function, got rid of goto.

Test Plan: added a unit test for it.

Reviewers: dhruba, heyongqiang

Reviewed By: heyongqiang

CC: leveldb, emayanke

Differential Revision: https://reviews.facebook.net/D10029
1 parent 9b3134f
History
File Mode Size
VALGRIND_LOGS
db
doc
hdfs
helpers
include
java
linters
port
scribe
snappy
table
thrift
tools
util
.arcconfig -rw-r--r-- 243 bytes
.gitignore -rw-r--r-- 174 bytes
LICENSE -rw-r--r-- 1.4 KB
Makefile -rw-r--r-- 10.7 KB
README -rw-r--r-- 2.2 KB
README.fb -rw-r--r-- 100 bytes
build_detect_platform -rwxr-xr-x 8.6 KB
build_detect_version -rwxr-xr-x 1.2 KB
build_java.sh -rwxr-xr-x 1.9 KB
e -rw-r--r-- 51 bytes
fbcode.clang31.sh -rw-r--r-- 3.1 KB
fbcode.gcc471.sh -rw-r--r-- 2.9 KB
regression_build_test.sh -rwxr-xr-x 2.3 KB
valgrind_test.sh -rwxr-xr-x 417 bytes

README

back to top