Skip to content

Commit

Permalink
Handle ReplServiceError:DATA_DUPLICATED
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwmao committed Dec 24, 2024
1 parent 197d52e commit 7ff31fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/homestore_backend/hs_pg_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,13 @@ PGError toPgError(ReplServiceError const& e) {
case ReplServiceError::OK:
DEBUG_ASSERT(false, "Should not process OK!");
[[fallthrough]];
case ReplServiceError::DATA_DUPLICATED:
[[fallthrough]];
case ReplServiceError::FAILED:
return PGError::UNKNOWN;
default:
return PGError::UNKNOWN;
}
return PGError::UNKNOWN;
}

[[maybe_unused]] static homestore::ReplDev& pg_repl_dev(PG const& pg) {
Expand Down

0 comments on commit 7ff31fc

Please sign in to comment.