|
| 1 | +#include "hs_backend_config.hpp" |
1 | 2 | #include "hs_homeobject.hpp" |
2 | 3 | #include "replication_message.hpp" |
3 | 4 | #include "replication_state_machine.hpp" |
@@ -408,14 +409,18 @@ HSHomeObject::blob_put_get_blk_alloc_hints(sisl::blob const& header, cintrusive< |
408 | 409 | homestore::blk_alloc_hints hints; |
409 | 410 |
|
410 | 411 | auto hs_shard = d_cast< HS_Shard* >((*shard_iter->second).get()); |
411 | | - BLOGD(tid, msg_header->shard_id, msg_header->blob_id, "Picked p_chunk_id=[{}]", hs_shard->sb_->p_chunk_id); |
412 | 412 | hints.chunk_id_hint = hs_shard->sb_->p_chunk_id; |
| 413 | + if (hs_ctx->is_proposer()) { hints.reserved_blks = get_reserved_blks(); } |
| 414 | + BLOGD(tid, msg_header->shard_id, msg_header->blob_id, "Picked p_chunk_id={}, reserved_blks={}", |
| 415 | + hs_shard->sb_->p_chunk_id, get_reserved_blks()); |
413 | 416 |
|
414 | 417 | if (msg_header->blob_id != 0) { |
415 | 418 | // check if the blob already exists, if yes, return the blk id |
416 | 419 | auto r = get_blob_from_index_table(hs_pg->index_table_, msg_header->shard_id, msg_header->blob_id); |
417 | 420 | if (r.hasValue()) { |
418 | | - BLOGT(tid, msg_header->shard_id, msg_header->blob_id, "Blob has already been persisted"); |
| 421 | + BLOGT(tid, msg_header->shard_id, msg_header->blob_id, |
| 422 | + "Blob has already been persisted, blk_num={}, blk_count={}", r.value().blk_num(), |
| 423 | + r.value().blk_count()); |
419 | 424 | hints.committed_blk_id = r.value(); |
420 | 425 | } |
421 | 426 | } |
|
0 commit comments