From f2070c82265f6655bc989cb6326db56eb545235d Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 3 Jun 2008 12:39:14 +0000 Subject: Better exception handling for commit. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@662774 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/SemanticState.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpp/src/qpid/broker/SemanticState.cpp') diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp index 3c4f6abc30..b3167d0377 100644 --- a/cpp/src/qpid/broker/SemanticState.cpp +++ b/cpp/src/qpid/broker/SemanticState.cpp @@ -127,6 +127,8 @@ void SemanticState::commit(MessageStore* const store, bool completeOnCommit) txBuffer->enlist(txAck); if (txBuffer->commitLocal(store)) { accumulatedAck.clear(); + } else { + throw InternalErrorException(QPID_MSG("Commit failed")); } } -- cgit v1.2.1