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

osd: force update pg_stats for duplicated publish_stats_to_osd() #8385

Closed
wants to merge 1 commit into from

Conversation

xiexingguo
Copy link
Member

We may call publish_stats_to_osd() multiple times during boot/peering/recovering,
in which cases we may want update some important info such as pg state and report
it to user on time. However the statistics may stay in the pg_stat_queue for a
long time in some abnormal cases, and we shall send the latest statistics instead,
which means a force update of existing pg_stats in the pg_stat_queue is mandatory.

Also, simplify pg_stat_queue_lock a little, which is good for extensibility.

Signed-off-by: xie xingguo xie.xingguo@zte.com.cn

We may call publish_stats_to_osd() multiple times during boot/peering/recovering,
in which cases we may want update some important info such as pg state and report
it to user on time. However the statistics may stay in the pg_stat_queue for a
long time in some abnormal cases, and we shall send the latest statistics instead,
which means a force update of existing pg_stats in the pg_stat_queue is mandatory.

Also, simplify pg_stat_queue_lock a little, which is good for extensibility.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant