virtual qBool ChangeMeta( ProtocolCallContext * pContext, const qVector< qUnsignedInt64 > & dataIds, const DataStoreChangeMetaParam & param, const qBool transactional = true, qVector< qResult > * pResults = NULL );
Name | Description | |
---|---|---|
in | pContext | Call information. |
in | dataIds | The data_id for the data you want to update. |
in | param | Detailed information. |
in | transactional | Whether to process only if all will succeed (true ), or to process as much as possible. The process is canceled for data for which the process will fail (false ). |
out | pResults | Whether successful or not. (Can be omitted.) |
Value | Description |
---|---|
true |
RMC call initialization succeeded. |
false |
Failure. |
Performs a batch-change to metadata in storage.
The function updates the metadata for the data specified with dataIds, using the conditions configured in param. Information set using the DataStoreChangeMetaParamSetDataId
function is ignored. Up to 100 sets of metadata can be batch-processed. The specified number of processing results on the data IDs specified in dataIds
are returned to pResult
in the same order in which they were specified. Only data that has update permission can be updated. ChangeMeta
cannot be used on POST data with a specified data ID.
Set DataStoreChangeMetaCompareParam
in DataStoreChangeMetaParam
to change the metadata by comparing and swapping. If the set value and the actual value are not the same, no change is made and the CallContext::GetOutcome
function returns QERROR(DataStore, ValueNotEqual)
.
CONFIDENTIAL