X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Flibs%2Fcontainer%2Fsrc%2Fmonotonic_buffer_resource.cpp;h=c676992aa15721ea2aa9021dbe4d431e7d4518b9;hb=20effc670b57271cb089376d6d0800990e5218d5;hp=29ffde1db2a32c1f1e8b60a5d685c72935bd6017;hpb=a71831dadd1e1f3e0fa70405511f65cc33db0498;p=ceph.git diff --git a/ceph/src/boost/libs/container/src/monotonic_buffer_resource.cpp b/ceph/src/boost/libs/container/src/monotonic_buffer_resource.cpp index 29ffde1db..c676992aa 100644 --- a/ceph/src/boost/libs/container/src/monotonic_buffer_resource.cpp +++ b/ceph/src/boost/libs/container/src/monotonic_buffer_resource.cpp @@ -141,6 +141,9 @@ void* monotonic_buffer_resource::do_allocate(std::size_t bytes, std::size_t alig //See if there is room in current buffer std::size_t aligner = 0u; if(this->remaining_storage(alignment, aligner) < bytes){ + //The new buffer will be aligned to the strictest alignment so reset + //the aligner, which was needed for the old buffer. + aligner = 0u; //Update next_buffer_size to at least bytes this->increase_next_buffer_at_least_to(bytes); //Now allocate and update internal data