Skip to content

Commit

Permalink
enhance: batch scan may fail when tablet unload
Browse files Browse the repository at this point in the history
  • Loading branch information
caijieming committed May 4, 2017
1 parent 3e8f338 commit c64ecb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sdk/scan_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void ResultStreamBatchImpl::ComputeStartKey(const KeyValuePair& kv, KeyValuePair
start_key->set_key(kv.key());
start_key->set_column_family(kv.column_family());
start_key->set_qualifier(GetNextStartPoint(kv.qualifier()));
start_key->set_timestamp(kv.timestamp());
start_key->set_timestamp(INT64_MAX);
} else { // table has timestamp > 0
start_key->set_key(kv.key());
start_key->set_column_family(kv.column_family());
Expand Down Expand Up @@ -421,7 +421,7 @@ bool ResultStreamSyncImpl::Done(ErrorCode* err) {
kv.qualifier(), kv.timestamp());
} else if (kv.timestamp() == 0) {
scan_desc_impl_->SetStart(kv.key(), kv.column_family(),
GetNextStartPoint(kv.qualifier()), kv.timestamp());
GetNextStartPoint(kv.qualifier()), INT64_MAX);
} else {
scan_desc_impl_->SetStart(kv.key(), kv.column_family(),
kv.qualifier(), kv.timestamp() - 1);
Expand Down

0 comments on commit c64ecb0

Please sign in to comment.