tibasSpace_CompareAndPut()
Specifies a tuple to look for. If the old value is unmodified, replaces the existing tuple with the specified value.
Declaration
tibas_status tibasSpace_CompareAndPut( tibasSpace space, tibasTuple* value, tibasTuple oldValue, tibasTuple newValue)
Remarks
Use the tibasSpace_CompareAndPut() function to search for a specified tuple in a specified space and, if the value specified in the oldValue parameter is unmodified, replace the tuple with a specified new value.
If there is a mismatch, the function returns the existing value in the space. If the operation is successful, the returned tuple will be same as the new tuple passed to the function. Otherwise, the return will be a different object.
Copyright © Cloud Software Group, Inc. All rights reserved.