diff options
author | Gordon Sim <gsim@apache.org> | 2007-04-05 11:48:05 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-04-05 11:48:05 +0000 |
commit | ca78f792bb1d381c85a8e64d1768c7abe7516f70 (patch) | |
tree | 8f7414b4268d406ac205b3405dc7720f886f1dde /qpid/cpp/src/broker/DeletingTxOp.cpp | |
parent | 6aaec799e2dd38f39601fe5fe458cadf3834aae8 (diff) | |
download | qpid-python-ca78f792bb1d381c85a8e64d1768c7abe7516f70.tar.gz |
* Further (minor) changes to the interface between store and broker.
* TxBuffer now uses shared_ptr to TxOps (removed DeletingTxOp)
* Queue now persists the field table of settings
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@525801 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/broker/DeletingTxOp.cpp')
-rw-r--r-- | qpid/cpp/src/broker/DeletingTxOp.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/qpid/cpp/src/broker/DeletingTxOp.cpp b/qpid/cpp/src/broker/DeletingTxOp.cpp deleted file mode 100644 index ae6ac0f2e6..0000000000 --- a/qpid/cpp/src/broker/DeletingTxOp.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ -#include "DeletingTxOp.h" - -using namespace qpid::broker; - -DeletingTxOp::DeletingTxOp(TxOp* const _delegate) : delegate(_delegate){} - -bool DeletingTxOp::prepare(TransactionContext* ctxt) throw(){ - return delegate && delegate->prepare(ctxt); -} - -void DeletingTxOp::commit() throw(){ - if(delegate){ - delegate->commit(); - delete delegate; - delegate = 0; - } -} - -void DeletingTxOp::rollback() throw(){ - if(delegate){ - delegate->rollback(); - delete delegate; - delegate = 0; - } -} |