Commit d523a012 authored by theshy's avatar theshy
Browse files

fixbug

Showing with 3 additions and 0 deletions
+3 -0
......@@ -348,7 +348,10 @@ class IndexScanExecutor : public AbstractExecutor {
scan_->next();
if(!scan_->is_end()) {
rid_ = scan_->rid();
if(!ifmodify_)
context_->lock_mgr_->lock_shared_on_record(context_->txn_, rid_, fh_->GetFd());
else
context_->lock_mgr_->lock_exclusive_on_record(context_->txn_, rid_, fh_->GetFd());
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment