Motr  M0
m0_be_tx_bulk_cfg Struct Reference

#include <tx_bulk.h>

Collaboration diagram for m0_be_tx_bulk_cfg:
Collaboration graph

Data Fields

struct m0_be_queue_cfg tbc_q_cfg
 
uint64_t tbc_workers_nr
 
uint64_t tbc_partitions_nr
 
uint64_t tbc_work_items_per_tx_max
 
struct m0_be_domaintbc_dom
 
void * tbc_datum
 
void(* tbc_do )(struct m0_be_tx_bulk *tb, struct m0_be_tx *tx, struct m0_be_op *op, void *datum, void *user, uint64_t worker_index, uint64_t partition)
 
void(* tbc_done )(struct m0_be_tx_bulk *tb, void *datum, void *user, uint64_t worker_index, uint64_t partition)
 

Detailed Description

User configuration with user-supplied callbacks for m0_be_tx_bulk.

  • tbc_do() should be thread-safe because it can be called from any locality. It could also be called from different localities at the same time;
  • it's possible to have more than one tbc_do() call in a single transaction.

Definition at line 64 of file tx_bulk.h.

Field Documentation

◆ tbc_datum

void* tbc_datum

it's passed as a parameter to m0_be_tx_bulk_cfg::tbc_do()

Definition at line 72 of file tx_bulk.h.

◆ tbc_do

void(* tbc_do) (struct m0_be_tx_bulk *tb, struct m0_be_tx *tx, struct m0_be_op *op, void *datum, void *user, uint64_t worker_index, uint64_t partition)

do some work in the context of a BE transaction

Definition at line 74 of file tx_bulk.h.

◆ tbc_dom

struct m0_be_domain* tbc_dom

BE domain for transactions

Definition at line 70 of file tx_bulk.h.

◆ tbc_done

void(* tbc_done) (struct m0_be_tx_bulk *tb, void *datum, void *user, uint64_t worker_index, uint64_t partition)

tx with this operation had become persistent

Definition at line 82 of file tx_bulk.h.

◆ tbc_partitions_nr

uint64_t tbc_partitions_nr

Definition at line 67 of file tx_bulk.h.

◆ tbc_q_cfg

struct m0_be_queue_cfg tbc_q_cfg

Definition at line 65 of file tx_bulk.h.

◆ tbc_work_items_per_tx_max

uint64_t tbc_work_items_per_tx_max

Definition at line 68 of file tx_bulk.h.

◆ tbc_workers_nr

uint64_t tbc_workers_nr

Definition at line 66 of file tx_bulk.h.


The documentation for this struct was generated from the following file: