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: fix a signed/unsigned warning in PG #13922

Merged
merged 1 commit into from Mar 17, 2017

Conversation

gregsfortytwo
Copy link
Member

It would be nice if the stats were unsigned, since they can't go negative,
but that's not the world we live in.
(Also, we probably use these structures as deltas which do
need to go negative? I didn't check.)

Signed-off-by: Greg Farnum gfarnum@redhat.com

It would be nice if the stats were unsigned, since they can't go negative,
but that's not the world we live in.
(Also, we probably use these structures as deltas which *do*
need to go negative? I didn't check.)

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
@gregsfortytwo
Copy link
Member Author

Didn't do any real testing of this, but it removed a signed/unsigned warning when compiled.

@liewegas
Copy link
Member

fwiw the stats are deliberately signed so that underflow is more graceful.

@dmick
Copy link
Member

dmick commented Mar 10, 2017

I broke the submodule check

@shinobu-x
Copy link
Contributor

retest this please

1 similar comment
@shinobu-x
Copy link
Contributor

retest this please

@gregsfortytwo
Copy link
Member Author

Did this not get through an integration branch yet? Just noticed I still needed to carry the patch through a rebase.

@yuriw yuriw merged commit 9e71f29 into ceph:master Mar 17, 2017
@yuriw
Copy link
Contributor

yuriw commented Mar 17, 2017

@gregsfortytwo what is the ticket number?

@gregsfortytwo
Copy link
Member Author

I don't think there was one. Just something that popped up when building.

@gregsfortytwo gregsfortytwo deleted the wip-pg-unsigned-warning branch March 17, 2017 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants