ec_message_swap_out_meta — Write message meta data to disk
int **ec_message_swap_out_meta** ( | mess, | |
| | force
); | |
Write message meta data to disk.
A pointer to an ec_message struct. For documentation of this data structure see “ec_message”
An integer indicating whether or not to force (
1) the swap out.
Returns one of EC_MSG_SWAP_RESULT_ERR, EC_MSG_SWAP_RESULT_COMPLETE or EC_MSG_SWAP_RESULT_PARTIAL.
EC_MSG_SWAP_RESULT_ERR (0)on error.
EC_MSG_SWAP_RESULT_COMPLETE (1)on success.
EC_MSG_SWAP_RESULT_PARTIAL (2) if the swap out was incomplete.
It is legal to call this function in any thread. However, as this may block the caller, it should not be called from the Scheduler Thread.
This function may induce IO or otherwise block the caller. If your code is running in the IO subsystem, the core will have already taken steps to ensure that blocking is acceptable. Otherwise, you should look at using the thread pool API to run a job in the IO pool.