TTSTransactionStatus

Verifies whether a transaction has been written to disk (For cross-platform functionality, see Developing NLMs with Cross-Platform Functions ( NDK: NLM Development Concepts, Tools, and Functions) and call call NWTTSTransactionStatus.)

Local Servers:blocking
Remote Servers:blocking
NetWare Server:3.x, 4.x, 5.x, 6.x
Platform:NLM
Service:Server-Based TTS

Syntax

  #include <\nlm\nit\nwtts.h>  
   
  int TTSTransactionStatus (  
     long   transactionNumber); 
  

Parameters

transactionNumber
(IN) Specifies the transaction reference number returned from the TTSEndTransaction function.

Return Values

Decimal

Hex

Constant

0

(0x00)

ESUCCESS

255

(0xFF)

TRANSACTION_NOT_YET_WRITTEN

Remarks

This function verifies whether a transaction has been written to disk, even if TTSEndTransaction returned ERR_TTS_DISABLED.

This function uses the transactionNumber parameter that contains a number assigned and used by the NetWare operating system to track each transaction. The transactionNumber is obtained through a call to TTSEndTransaction.

Because of the server caching algorithms, it can be 3 to 5 seconds or longer before transactions are actually written. Transactions are completed to disk in the order in which they are ended.

See Also

TTSEndTransaction