From b1afcebebaf712d008b650a3dbe2287083abc913 Mon Sep 17 00:00:00 2001 From: Jung-Sang Ahn Date: Tue, 15 Oct 2024 15:22:44 -0700 Subject: [PATCH] Fix LCOV exception error --- src/handle_snapshot_sync.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/handle_snapshot_sync.cxx b/src/handle_snapshot_sync.cxx index a0c4c333..87e25fa1 100644 --- a/src/handle_snapshot_sync.cxx +++ b/src/handle_snapshot_sync.cxx @@ -183,14 +183,12 @@ ptr raft_server::create_sync_snapshot_req(ptr& pp, data = buffer::alloc((size_t)(std::min((ulong)blk_sz, sz_left))); int32 sz_rd = state_machine_->read_snapshot_data(*snp, offset, *data); if ((size_t)sz_rd < data->size()) { - // LCOV_EXCL_START p_er( "only %d bytes could be read from snapshot while %zu " "bytes are expected, must be something wrong, exit.", sz_rd, data->size() ); ctx_->state_mgr_->system_exit(raft_err::N18_partial_snapshot_block); _sys_exit(-1); return ptr(); - // LCOV_EXCL_STOP } last_request = (offset + (ulong)data->size()) >= snp->size(); data_idx = offset;