Skip to content

Commit a64afa0

Browse files
Besroyyawzhang
andauthored
Fix error code trans seq (#390)
Current toBlobError logic will trans ReplServiceError BAD_REQUEST...DATA_DUPLICATED to BlobError NO_SPACE_LEFT, which is expected to be trans as REPLICATION_ERROR Co-authored-by: yawzhang <yawzhang@ebay.com>
1 parent c7a4da0 commit a64afa0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class HomeObjectConan(ConanFile):
1212
name = "homeobject"
13-
version = "3.0.18"
13+
version = "3.0.19"
1414

1515
homepage = "https://github.com/eBay/HomeObject"
1616
description = "Blob Store built on HomeStore"

src/lib/homestore_backend/hs_blob_manager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ BlobError toBlobError(ReplServiceError const& e) {
4141
[[fallthrough]];
4242
case ReplServiceError::TERM_MISMATCH:
4343
[[fallthrough]];
44-
case ReplServiceError::NO_SPACE_LEFT:
45-
return BlobError(BlobErrorCode::NO_SPACE_LEFT);
4644
case ReplServiceError::DATA_DUPLICATED:
4745
return BlobError(BlobErrorCode::REPLICATION_ERROR);
46+
case ReplServiceError::NO_SPACE_LEFT:
47+
return BlobError(BlobErrorCode::NO_SPACE_LEFT);
4848
case ReplServiceError::NOT_LEADER:
4949
return BlobError(BlobErrorCode::NOT_LEADER);
5050
case ReplServiceError::TIMEOUT:

0 commit comments

Comments
 (0)