nfs4: Make sure Request::fNext is initially NULL
This commit is contained in:
parent
266b99b7e9
commit
a4caa431e4
@ -46,6 +46,7 @@ RequestManager::AddRequest(Request* request)
|
||||
else
|
||||
fQueueHead = request;
|
||||
fQueueTail = request;
|
||||
request->fNext = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
@ -41,6 +41,9 @@ public:
|
||||
|
||||
private:
|
||||
mutex fLock;
|
||||
|
||||
// Neither SinglyLinkedList nor DoublyLinkedList is what we want
|
||||
// here. And DoublyLinkedQueue is not even a queue.
|
||||
Request* fQueueHead;
|
||||
Request* fQueueTail;
|
||||
|
||||
@ -72,8 +75,8 @@ public:
|
||||
|
||||
status_t Repair();
|
||||
|
||||
inline const PeerAddress& ID() const;
|
||||
inline PeerAddress LocalID() const;
|
||||
inline const PeerAddress& ID() const;
|
||||
inline PeerAddress LocalID() const;
|
||||
|
||||
inline ProgramData* PrivateData();
|
||||
inline void SetPrivateData(ProgramData* privateData);
|
||||
@ -94,7 +97,7 @@ private:
|
||||
|
||||
RequestManager fRequests;
|
||||
Connection* fConnection;
|
||||
const PeerAddress* fAddress;
|
||||
const PeerAddress* fAddress;
|
||||
|
||||
ProgramData* fPrivateData;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user