Skip to content

Commit

Permalink
fix: replication error message and scan command yield
Browse files Browse the repository at this point in the history
  • Loading branch information
kostasrim committed Feb 26, 2025
1 parent 8512f72 commit 068058b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/server/generic_family.cc
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,7 @@ void OpScan(const OpArgs& op_args, const ScanOpts& scan_opts, uint64_t* cursor,
const size_t limit = 10000;
do {
if (buckets_iterated >= limit) {
buckets_iterated = 0;
util::ThisFiber::Yield();
break;
}
{
// Disable flush journal changes to prevent preemtion in traverse.
Expand Down
2 changes: 1 addition & 1 deletion src/server/replica.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ GenericError Replica::Start() {

auto check_connection_error = [this](error_code ec, const char* msg) -> GenericError {
if (!cntx_.IsRunning()) {
return {std::make_error_code(errc::operation_canceled), "replication cancelled"};
return {"replication cancelled"};
}
if (ec) {
cntx_.ReportCancelError();
Expand Down

0 comments on commit 068058b

Please sign in to comment.