Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
Feature: control
Allow-unstable-tests: true
Required-githooks: true

Signed-off-by: Tom Nabarro <[email protected]>
  • Loading branch information
tanabarr committed Aug 8, 2024
1 parent d38ca61 commit cb11ae8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mgmt/srv_drpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,12 +496,12 @@ ds_mgmt_drpc_pool_create(Drpc__Call *drpc_req, Drpc__Response *drpc_resp)
}

/**
* Ranks to allocate targets (in) & svc for pool replicas (out). Mapping of tierbytes in
* Ranks to allocate targets (in) & svc for pool replicas (out). Mapping of tier_bytes in
* MD-on-SSD mode is (tier0*mem_ratio)->scm_size (mem-file-size), tier0->meta_size and
* tier1->nvme_size (data_size).
*/

scm_size = req->tierbytes[DAOS_MEDIA_SCM];
scm_size = req->tier_bytes[DAOS_MEDIA_SCM];
if (req->mem_ratio)
scm_size *= req->mem_ratio;

Expand All @@ -521,7 +521,7 @@ ds_mgmt_drpc_pool_create(Drpc__Call *drpc_req, Drpc__Response *drpc_resp)
* the supplied input values but really should be returned from ds_mgmt_pool_query() through
* the VOS query API and set in pool_create_fill_resp(). Return zero for non-MD-on-SSD mode.
*/
resp.mem_file_bytes = req->tierbytes[DAOS_MEDIA_SCM] * req->mem_ratio;
resp.mem_file_bytes = req->tier_bytes[DAOS_MEDIA_SCM] * req->mem_ratio;

out:
resp.status = rc;
Expand Down

0 comments on commit cb11ae8

Please sign in to comment.