mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 18:32:18 +08:00
a.fix heap-use-after-free caused by early noErrorsActors destroy
This commit is contained in:
parent
4ccaacdd59
commit
74748c20a0
@ -440,6 +440,8 @@ ACTOR Future<Void> dataDistributionRelocator(struct DDQueueData* self,
|
||||
const DDEnabledState* ddEnabledState);
|
||||
|
||||
struct DDQueueData {
|
||||
ActorCollectionNoErrors noErrorActors; // has to be the last one to be destroyed because other Actors may use it.
|
||||
|
||||
UID distributorId;
|
||||
MoveKeysLock lock;
|
||||
Database cx;
|
||||
@ -479,7 +481,6 @@ struct DDQueueData {
|
||||
PromiseStream<RelocateData> dataTransferComplete;
|
||||
PromiseStream<RelocateData> relocationComplete;
|
||||
PromiseStream<RelocateData> fetchSourceServersComplete; // find source SSs for a relocate range
|
||||
ActorCollectionNoErrors noErrorActors;
|
||||
|
||||
PromiseStream<RelocateShard> output;
|
||||
FutureStream<RelocateShard> input;
|
||||
|
Loading…
x
Reference in New Issue
Block a user