mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-10 08:36:09 +00:00
move back AMAP
This commit is contained in:
parent
b22f7153cc
commit
c712ce1480
@ -32,10 +32,11 @@ struct AvailSlots {
|
||||
|
||||
std::lock_guard lock(mutex);
|
||||
if (idx == nextAvail - 1) {
|
||||
while (free.find(--nextAvail) != free.end()) {
|
||||
// move back next avail as much as possible
|
||||
;
|
||||
}
|
||||
nextAvail--;
|
||||
while (free.find(nextAvail - 1) != free.end()) {
|
||||
// move back next avail as much as possible
|
||||
free.erase(--nextAvail);
|
||||
}
|
||||
} else {
|
||||
free.insert(idx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user