Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
done:
#define LARGE_ENOUGH_BUF 4096
if (!buf) {
- max_len = max(LARGE_ENOUGH_BUF, size);
+ max_len = ceph::max(LARGE_ENOUGH_BUF, size);
buf = (char *)malloc(max_len);
if (!buf) {
cerr << "ERROR: RGWFormatter_Plain::write_data: failed allocating " << max_len << " bytes" << std::endl;
void append(uint64_t ofs, const OldObjManifestPart& part) {
objs[ofs] = part;
- obj_size = max(obj_size, ofs + part.size);
+ obj_size = ceph::max(obj_size, ofs + part.size);
}
void encode(bufferlist& bl) const {