Method: Bdb::Env#tx_max
- Defined in:
- ext/bdb.c
#tx_max ⇒ Object
call-seq env.get_tx_max -> Fixnum
Get current maximum number of transactions
2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 |
# File 'ext/bdb.c', line 2371 VALUE env_get_tx_max(VALUE obj) { t_envh *eh; u_int32_t max; int rv; Data_Get_Struct(obj,t_envh,eh); if (!eh->env) raise(0, "env is closed"); rv=eh->env->get_tx_max(eh->env,&max); if ( rv != 0 ) { raise_error(rv, "env_get_tx_max: %s",db_strerror(rv)); } return INT2FIX(max); } |