TTS Set Application Thresholds 0x2222 34 06

Specifies the number of logical and physical record locks allowed before an implicit transaction begins.

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

Request Format

Offset

Content

Type

Request header

6

FunctionCode (34)

byte

7

SubFunctionCode (6)

byte

8

LogicalLockThreshold

byte

9

PhysicalLockThreshold

byte

Return Values

Decimal

Hex

Description

0

0x00

Successful

150

0x96

Server Out Of Memory

Remarks

If a threshold value is zero, an implicit transaction will begin when the first lock is made for that particular lock type; if a threshold value is 100, an implicit transaction will begin when the one hundred and first lock is made, etc.

TTS Set Application Thresholds and TTS Get Application Thresholds (0x2222 34 5) can be used to change the implicit application thresholds and to restore the thresholds.

For example, TTS Get Application Thresholds can query an application for the number of logical and physical record locks allowed before an implicit transaction begins. TTS Set Application Thresholds can then do either of the following:

  • Turn off implicit transactions

  • Set implicit thresholds for applications that always keep one or more records locked

Applications that use only explicit transactions, but that sometimes generate unnecessary implicit transactions, should turn off all implicit transactions.

The default thresholds for logical and physical locks is zero. A threshold value of 0xFF means implicit transaction for that lock type is not in effect.

The returned thresholds are valid only for the requesting application. When the application terminates, the workstation thresholds are restored.

See Also

TTS Get Application Thresholds 0x2222 34 05