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/PrimaryLogPG: more oi.extents fixes #18616

Merged
merged 3 commits into from Oct 31, 2017

Conversation

xiexingguo
Copy link
Member

No description provided.

oi.extents.insert(old_size, offset - old_size);
}
}
delta_stats.num_bytes += oi.extents.size();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would be inclined not to do this patch since it doesn't change the allocations...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liewegas Okay, updated.

@xiexingguo xiexingguo force-pushed the wip-hunt-scrub-mismatch branch 2 times, most recently from eabdcf7 to 8c630a0 Compare October 30, 2017 13:22
…operly

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
there's already a builtin operator<< for interval_set,
which is simpler.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
There might be holes in the extents map, thus it is not always
consistent to calc the clone bytes this way.
Instead we could switch to its own (simpler and consistent) way to
count used bytes for head-object and clone respectively.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
@yuriw
Copy link
Contributor

yuriw commented Oct 30, 2017

@yuriw yuriw merged commit 85bef1e into ceph:master Oct 31, 2017
@xiexingguo xiexingguo deleted the wip-hunt-scrub-mismatch branch November 1, 2017 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants