TTS End Transaction 0x2222 34 02

Ends an explicit transaction and returns a transaction number.

NetWare Servers:2.x, 3.x, 4.x, 5.x

Request Format

Offset

Content

Type

Request header

6

FunctionCode (34)

byte

7

SubFunctionCode (2)

byte

Reply Format

Offset

Content

Type

Reply header

8

TransactionNumber

long (Hi-Lo)

Return Values

Decimal

Hex

Description

0

0x00

Successful

255

0xFF

Lock Error

Remarks

A transaction is not necessarily written to disk when TTS End Transaction returns. Pass the returned TransactionNumber to TTS Transaction Status (0x2222 34 4) to verify a successful transaction completion to disk.

If the file server fails before all transaction updates are written to disk, the transaction will be backed out when the file server is rebooted, unless transaction tracking is disabled.

TTS End Transaction releases the following record locks:

  • Physical record locks generated by the file server when an application tried to write to an unlocked record

  • Physical or logical locks that have not been released because of a file write

For explicit transactions, the transaction is backed out; any locks being held are released.

For implicit transactions, if the number of logical or physical records still locked exceeds the threshold, TTS Abort Transaction returns Transaction Restart (0xFE), the transaction is backed out, and the file server automatically starts a new implicit transaction.

See Also

TTS Begin Transaction 0x2222 34 01, TTS Abort Transaction 0x2222 34 03, TTS Transaction Status 0x2222 34 04