summaryrefslogtreecommitdiffstats
path: root/src/os/bluestore/BlueFS.cc
diff options
context:
space:
mode:
authorAdam Kupczyk <akupczyk@ibm.com>2024-08-07 14:42:35 +0200
committerGitHub <noreply@github.com>2024-08-07 14:42:35 +0200
commitf5e8d11fed1aa00d28be4baa84448b849eecf68b (patch)
tree9228af6dbaf18e8f007752d07a5979877437dd88 /src/os/bluestore/BlueFS.cc
parentMerge pull request #58907 from adam-lj/rbd-throttle-perf (diff)
parentos/bluestore: fix valgrind's "Invalid read" error in hybrid btree2 (diff)
downloadceph-f5e8d11fed1aa00d28be4baa84448b849eecf68b.tar.xz
ceph-f5e8d11fed1aa00d28be4baa84448b849eecf68b.zip
Merge pull request #52489 from ifed01/wip-ifed-alloc2
os/bluestore: introduce hybrid_btree2 allocator
Diffstat (limited to 'src/os/bluestore/BlueFS.cc')
-rw-r--r--src/os/bluestore/BlueFS.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc
index 89accf7880a..4ad76faa76d 100644
--- a/src/os/bluestore/BlueFS.cc
+++ b/src/os/bluestore/BlueFS.cc
@@ -3961,8 +3961,9 @@ int BlueFS::_allocate(uint8_t id, uint64_t len,
}
if (alloc_len < 0 || alloc_len < need) {
if (alloc[id]) {
- if (alloc_len > 0) {
+ if (extents.size()) {
alloc[id]->release(extents);
+ extents.clear();
}
if (!was_cooldown && shared) {
auto delay_s = cct->_conf->bluefs_failed_shared_alloc_cooldown;