This commit is contained in:
parent
68ed3fa232
commit
f9c03af538
@ -9,13 +9,13 @@ TmStoreTaskBase::TmStoreTaskBase(object_id_t objectId, StorageManagerIF& ipcStor
|
|||||||
|
|
||||||
bool TmStoreTaskBase::handleOneStore(PersistentTmStoreWithTmQueue& store, Event eventIfDone) {
|
bool TmStoreTaskBase::handleOneStore(PersistentTmStoreWithTmQueue& store, Event eventIfDone) {
|
||||||
ReturnValue_t result;
|
ReturnValue_t result;
|
||||||
bool tmToStoreReceived = true;
|
bool tmToStoreReceived = false;
|
||||||
bool tcRequestReceived = true;
|
bool tcRequestReceived = false;
|
||||||
bool dumpsPerformed = false;
|
bool dumpsPerformed = false;
|
||||||
// Store TM persistently
|
// Store TM persistently
|
||||||
result = store.handleNextTm();
|
result = store.handleNextTm();
|
||||||
if (result == MessageQueueIF::EMPTY) {
|
if (result == returnvalue::OK) {
|
||||||
tmToStoreReceived = false;
|
tmToStoreReceived = true;
|
||||||
}
|
}
|
||||||
// Dump TMs when applicable
|
// Dump TMs when applicable
|
||||||
if (store.getState() == PersistentTmStore::State::DUMPING) {
|
if (store.getState() == PersistentTmStore::State::DUMPING) {
|
||||||
@ -37,8 +37,8 @@ bool TmStoreTaskBase::handleOneStore(PersistentTmStoreWithTmQueue& store, Event
|
|||||||
} else {
|
} else {
|
||||||
// Handle TC requests, for example deletion or retrieval requests.
|
// Handle TC requests, for example deletion or retrieval requests.
|
||||||
result = store.handleCommandQueue(ipcStore);
|
result = store.handleCommandQueue(ipcStore);
|
||||||
if (result == MessageQueueIF::EMPTY) {
|
if (result == returnvalue::OK) {
|
||||||
tcRequestReceived = false;
|
tcRequestReceived = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (tcRequestReceived or tmToStoreReceived or dumpsPerformed) {
|
if (tcRequestReceived or tmToStoreReceived or dumpsPerformed) {
|
||||||
|
Loading…
Reference in New Issue
Block a user