This commit is contained in:
parent
99192606a2
commit
7c42e05c23
@ -142,11 +142,11 @@ ReturnValue_t TmStoreTaskBase::performDump(PersistentTmStoreWithTmQueue& store,
|
|||||||
result = channel.write(tmReader.getFullData(), dumpedLen, partiallyWrittenSize);
|
result = channel.write(tmReader.getFullData(), dumpedLen, partiallyWrittenSize);
|
||||||
if (result == VirtualChannelIF::PARTIALLY_WRITTEN) {
|
if (result == VirtualChannelIF::PARTIALLY_WRITTEN) {
|
||||||
result = channel.handleLastWriteSynchronously(tmReader.getFullData(), partiallyWrittenSize,
|
result = channel.handleLastWriteSynchronously(tmReader.getFullData(), partiallyWrittenSize,
|
||||||
dumpedLen - partiallyWrittenSize, 20);
|
dumpedLen - partiallyWrittenSize, 200);
|
||||||
if (result != returnvalue::OK) {
|
if (result != returnvalue::OK) {
|
||||||
// TODO: Event? Might lead to dangerous spam though..
|
// TODO: Event? Might lead to dangerous spam though..
|
||||||
sif::warning << "PersistentTmStore: Synchronous write of last segment failed with code 0x"
|
sif::warning << "PersistentTmStore: Synchronous write of last segment failed with code 0x"
|
||||||
<< std::setw(4) << std::hex << result << std::endl;
|
<< std::setw(4) << std::hex << result << std::dec << std::endl;
|
||||||
}
|
}
|
||||||
} else if (result == DirectTmSinkIF::IS_BUSY) {
|
} else if (result == DirectTmSinkIF::IS_BUSY) {
|
||||||
sif::warning << "PersistentTmStore: Unexpected VC channel busy" << std::endl;
|
sif::warning << "PersistentTmStore: Unexpected VC channel busy" << std::endl;
|
||||||
|
@ -41,12 +41,12 @@ ReturnValue_t VirtualChannelWithQueue::handleNextTm(bool performWriteOp) {
|
|||||||
if (performWriteOp) {
|
if (performWriteOp) {
|
||||||
result = write(data, size, partiallyWrittenSize);
|
result = write(data, size, partiallyWrittenSize);
|
||||||
if (result == PARTIALLY_WRITTEN) {
|
if (result == PARTIALLY_WRITTEN) {
|
||||||
result = handleLastWriteSynchronously(data, size, partiallyWrittenSize, 20);
|
result = handleLastWriteSynchronously(data, size, partiallyWrittenSize, 200);
|
||||||
if (result != returnvalue::OK) {
|
if (result != returnvalue::OK) {
|
||||||
// TODO: Event? Might lead to dangerous spam though..
|
// TODO: Event? Might lead to dangerous spam though..
|
||||||
sif::warning
|
sif::warning
|
||||||
<< "VirtualChannelWithQueue: Synchronous write of last segment failed with code 0x"
|
<< "VirtualChannelWithQueue: Synchronous write of last segment failed with code 0x"
|
||||||
<< std::setw(4) << std::hex << result << std::endl;
|
<< std::setw(4) << std::hex << result << std::dec << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user