Command: TROLLBACK

Purpose: Rolls back any database changes that were made since a previous TSTART command. Changes to persistent arrays as a result of SET, KILL, SETSUBTREE or MERGETO commands following a TSTART are rolled back to their previous state prior to the TSTART.

Arguments:

None

Response

Single-line response

Server: +OK

Example

Client: TSTART
Server: +OK
Client: SET test1["xxx"] 4
Client: 1234
Client: SET test1["yyy"] 3
Client: abc
Client: SET test2["index",1234] 3
Client: xxx
Client: TROLLBACK
Server: +OK

For those familiar with the native language of GT.M and Caché systems, the second example is the equivalent of:

trollback