mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
hobject: enforce max canonical value
Signed-off-by: Samuel Just <sjust@redhat.com>
This commit is contained in:
parent
7c5f2acaa5
commit
cef5151a62
@ -112,6 +112,7 @@ void hobject_t::encode(bufferlist& bl) const
|
||||
::encode(max, bl);
|
||||
::encode(nspace, bl);
|
||||
::encode(pool, bl);
|
||||
assert(!max || (*this == hobject_t(hobject_t::get_max())));
|
||||
ENCODE_FINISH(bl);
|
||||
}
|
||||
|
||||
|
@ -179,6 +179,7 @@ public:
|
||||
}
|
||||
|
||||
bool is_max() const {
|
||||
assert(!max || (*this == hobject_t(hobject_t::get_max())));
|
||||
return max;
|
||||
}
|
||||
bool is_min() const {
|
||||
|
Loading…
Reference in New Issue
Block a user