Logo Search packages:      
Sourcecode: xapian-core version File versions  Download package

void Xapian::Database::Internal::cancel_transaction (  ) 

Cancel a transaction.

See WritableDatabase::cancel_transaction() for more information.

Definition at line 364 of file database.cc.

References cancel(), and transaction_state.

Referenced by dtor_called().

    if (!transaction_active()) {
      if (transaction_state == TRANSACTION_UNIMPLEMENTED)
          throw Xapian::UnimplementedError("This backend doesn't implement transactions");
      throw InvalidOperationError("Cannot cancel transaction - no transaction currently in progress");
    transaction_state = TRANSACTION_NONE;

Generated by  Doxygen 1.6.0   Back to index