mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-16 10:52:20 +08:00
Fix a memory bug.
This commit is contained in:
parent
1e7338b6c3
commit
8fac798ece
@ -113,7 +113,7 @@ public:
|
|||||||
// Wait for diskDelay before submitting the I/O
|
// Wait for diskDelay before submitting the I/O
|
||||||
return mapAsync<Void, std::function<Future<Void>(Void)>, Void>(delay(diskDelay), [=](Void _) -> Future<Void> {
|
return mapAsync<Void, std::function<Future<Void>(Void)>, Void>(delay(diskDelay), [=](Void _) -> Future<Void> {
|
||||||
if (pdata)
|
if (pdata)
|
||||||
return holdWhile(pdata, file->write(pdata, length, offset));
|
return holdWhile(arena, file->write(pdata, length, offset));
|
||||||
|
|
||||||
return file->write(data, length, offset);
|
return file->write(data, length, offset);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user