Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAOS-16713 vos: initialize checkpoint stats #15454

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/include/daos/mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,12 @@ struct umem_cache {
};

struct umem_cache_chkpt_stats {
/** Last committed checkpoint id */
uint64_t *uccs_chkpt_id;
/** Number of pages processed */
int uccs_nr_pages;
unsigned int uccs_nr_pages;
/** Number of dirty chunks copied */
int uccs_nr_dchunks;
unsigned int uccs_nr_dchunks;
/** Number of sgl iovs used to copy dirty chunks */
int uccs_nr_iovs;
unsigned int uccs_nr_iovs;
};

/** Allocate global cache for umem store.
Expand Down
2 changes: 1 addition & 1 deletion src/vos/vos_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ vos_pool_checkpoint(daos_handle_t poh)
struct bio_wal_info wal_info;
int rc;
uint64_t purge_size = 0;
struct umem_cache_chkpt_stats stats;
struct umem_cache_chkpt_stats stats = { 0 };
struct vos_chkpt_metrics *chkpt_metrics = NULL;

pool = vos_hdl2pool(poh);
Expand Down
Loading