Skip to content

Commit 778e0f0

Browse files
authored
Remove redundant return in read_snapshot_obj (#296)
1 parent f0c177e commit 778e0f0

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

conanfile.py

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

1010
class HomeObjectConan(ConanFile):
1111
name = "homeobject"
12-
version = "2.3.17"
12+
version = "2.3.18"
1313

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

src/lib/homestore_backend/replication_state_machine.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,6 @@ int ReplicationStateMachine::read_snapshot_obj(std::shared_ptr< homestore::snaps
359359
LOGD("read current snp obj {}", log_str)
360360
// invalid Id
361361
if (!pg_iter->update_cursor(obj_id)) {
362-
LOGW("Invalid objId in snapshot read, {}, current shard_seq_num={}, current batch_num={}", log_str,
363-
pg_iter->cur_obj_id_.shard_seq_num, pg_iter->cur_obj_id_.batch_id);
364-
return -1;
365362
// There is a known cornor case(not sure if it is the only case): If free_user_snp_ctx and read_snapshot_obj(we
366363
// enable nuraft bg snapshot) occur at the same time, and free_user_snp_ctx is called first, pg_iter is
367364
// released, and then in read_snapshot_obj, pg_iter will be created with cur_obj_id_ = 0|0 while the

0 commit comments

Comments
 (0)