@@ -509,7 +509,8 @@ DataManager::PutViaTe(std::string_view key, std::vector<Slice>& slices) {
509509 return tl::unexpected (validate_result.error ());
510510 }
511511
512- // Local Put: allocation follows tier backend policy (not restricted to DRAM).
512+ // Local Put: allocation follows tier backend policy (not restricted to
513+ // DRAM).
513514 auto prewrite_result =
514515 PreWriteInternal (kctx, total_size, std::nullopt , false );
515516 if (!prewrite_result) {
@@ -882,8 +883,7 @@ tl::expected<UUID, ErrorCode> DataManager::WriteRemoteData(
882883
883884 // Reverse RDMA path: still one RPC, but internally use the 3-phase write
884885 // model (PreWrite -> transfer -> WriteCommit). Target tier may be non-DRAM.
885- auto prewrite_result =
886- PreWriteInternal (kctx, total_size, tier_id, false );
886+ auto prewrite_result = PreWriteInternal (kctx, total_size, tier_id, false );
887887 if (!prewrite_result) {
888888 timer.LogResponse (" error_code=" , prewrite_result.error ());
889889 return tl::make_unexpected (prewrite_result.error ());
@@ -926,10 +926,9 @@ tl::expected<PreWriteResponse, ErrorCode> DataManager::PreWrite(
926926 return PreWriteInternal (BuildKeyCtx (key), size_bytes, tier_id, true );
927927}
928928
929- tl::expected<PreWriteResponse, ErrorCode>
930- DataManager::PreWriteInternal (const KeyCtx& ctx, size_t size_bytes,
931- std::optional<UUID> tier_id,
932- bool enforce_dram_allocation) {
929+ tl::expected<PreWriteResponse, ErrorCode> DataManager::PreWriteInternal (
930+ const KeyCtx& ctx, size_t size_bytes, std::optional<UUID> tier_id,
931+ bool enforce_dram_allocation) {
933932 ScopedVLogTimer timer (1 , " DataManager::PreWrite" );
934933 timer.LogRequest (" key=" , ctx.key , " size_bytes=" , size_bytes);
935934
@@ -963,11 +962,11 @@ DataManager::PreWriteInternal(const KeyCtx& ctx, size_t size_bytes,
963962
964963 auto handle = std::move (handle_result.value ());
965964 // When enforce_dram_allocation is true (RPC PreWrite): only DRAM is wired
966- // for forward TE today; non-DRAM tiers TODO. Local Put / WriteRemoteData use
967- // false and skip this check.
968- if (enforce_dram_allocation &&
969- handle-> loc . data . type != MemoryType::DRAM) {
970- timer. LogResponse ( " error_code= " , ErrorCode::UNAVAILABLE_IN_CURRENT_MODE);
965+ // for forward TE today; non-DRAM tiers TODO. Local Put / WriteRemoteData
966+ // use false and skip this check.
967+ if (enforce_dram_allocation && handle-> loc . data . type != MemoryType::DRAM) {
968+ timer. LogResponse ( " error_code= " ,
969+ ErrorCode::UNAVAILABLE_IN_CURRENT_MODE);
971970 return tl::make_unexpected (ErrorCode::UNAVAILABLE_IN_CURRENT_MODE);
972971 }
973972 auto list_it = shard.ordered_list .emplace (shard.ordered_list .end (),
@@ -1075,7 +1074,8 @@ tl::expected<PinKeyResponse, ErrorCode> DataManager::PinKeyInternal(
10751074 RemoveExpiredPinnedKeyLocked (shard, ctx.key_string , now);
10761075 auto record_it = shard.by_key .find (ctx.key_string );
10771076 if (record_it != shard.by_key .end ()) {
1078- // PinKey forward path: DRAM-only for now; non-DRAM replica handling TODO.
1077+ // PinKey forward path: DRAM-only for now; non-DRAM replica handling
1078+ // TODO.
10791079 if (record_it->second .handle ->loc .data .type != MemoryType::DRAM) {
10801080 timer.LogResponse (" error_code=" ,
10811081 ErrorCode::UNAVAILABLE_IN_CURRENT_MODE);
@@ -1103,7 +1103,8 @@ tl::expected<PinKeyResponse, ErrorCode> DataManager::PinKeyInternal(
11031103 auto handle = std::move (handle_result.value ());
11041104 // PinKey forward path: DRAM-only for now; non-DRAM replica handling TODO.
11051105 if (handle->loc .data .type != MemoryType::DRAM) {
1106- timer.LogResponse (" error_code=" , ErrorCode::UNAVAILABLE_IN_CURRENT_MODE);
1106+ timer.LogResponse (" error_code=" ,
1107+ ErrorCode::UNAVAILABLE_IN_CURRENT_MODE);
11071108 return tl::make_unexpected (ErrorCode::UNAVAILABLE_IN_CURRENT_MODE);
11081109 }
11091110 auto list_it = shard.ordered_list .emplace (shard.ordered_list .end (),
@@ -1275,8 +1276,8 @@ DataManager::SubmitTeTransferInternal(
12751276 std::move (buffer_result.value ());
12761277 }
12771278
1278- auto batches_result = SubmitTeTransferBatches (
1279- transfer_ptr, total_data_size, remote_buffers, opcode);
1279+ auto batches_result = SubmitTeTransferBatches (transfer_ptr, total_data_size,
1280+ remote_buffers, opcode);
12801281 if (!batches_result) {
12811282 return tl::unexpected (batches_result.error ());
12821283 }
0 commit comments