kernel/io_request: Add assertion in NotifyFinished() that fStatus is set.
This commit is contained in:
parent
831bb20728
commit
9b1ff49d87
@ -939,6 +939,7 @@ IORequest::NotifyFinished()
|
|||||||
TRACE("IORequest::NotifyFinished(): request: %p\n", this);
|
TRACE("IORequest::NotifyFinished(): request: %p\n", this);
|
||||||
|
|
||||||
MutexLocker locker(fLock);
|
MutexLocker locker(fLock);
|
||||||
|
ASSERT(fStatus != 1);
|
||||||
|
|
||||||
if (fStatus == B_OK && !fPartialTransfer && RemainingBytes() > 0) {
|
if (fStatus == B_OK && !fPartialTransfer && RemainingBytes() > 0) {
|
||||||
// The request is not really done yet. If it has an iteration callback,
|
// The request is not really done yet. If it has an iteration callback,
|
||||||
|
Loading…
Reference in New Issue
Block a user