HBASE-1483 HLog split loses track of edits

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@781868 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-06-04 23:04:28 +00:00
parent c9d309e5c3
commit 0cb1edce64
1 changed files with 4 additions and 2 deletions

View File

@ -800,8 +800,6 @@ public class HLog implements HConstants, Syncable {
try {
in = new SequenceFile.Reader(fs, logfiles[i].getPath(), conf);
try {
// Make the key and value new each time; otherwise same instance
// is used over and over.
HLogKey key = new HLogKey();
KeyValue val = new KeyValue();
while (in.next(key, val)) {
@ -814,6 +812,10 @@ public class HLog implements HConstants, Syncable {
}
queue.push(new HLogEntry(val, key));
count++;
// Make the key and value new each time; otherwise same instance
// is used over and over.
key = new HLogKey();
val = new KeyValue();
}
LOG.debug("Pushed " + count + " entries from " +
logfiles[i].getPath());