Checkpoint.
- Fix a couple of edge cases while switching between collections. - Raise error if attempting to switch collections mid-transaction. - Add logic for re-entrancy with long-running transactions. - Revert to the prior collection if passing a block to #collection. - Add a predicate to tell if you're currently within a long-running transaction. - Add separate commit/rollback to long-running transactions. FossilOrigin-Name: 711239e6fc2f25479a26fb54805da1e5db792f97f28a8b5724e0b38eb11cdb07
This commit is contained in:
parent
ceb92fad16
commit
81ee69295c
7 changed files with 239 additions and 29 deletions
|
|
@ -84,7 +84,7 @@ rmdbx_gather_environment_stats(
|
|||
INT2NUM(menvinfo.mi_recent_txnid) );
|
||||
rb_hash_aset( environ, ID2SYM(rb_intern("last_reader_txnid")),
|
||||
INT2NUM(menvinfo.mi_latter_reader_txnid) );
|
||||
rb_hash_aset( environ, ID2SYM(rb_intern("maximum_readers")),
|
||||
rb_hash_aset( environ, ID2SYM(rb_intern("max_readers")),
|
||||
INT2NUM(menvinfo.mi_maxreaders) );
|
||||
rb_hash_aset( environ, ID2SYM(rb_intern("readers_in_use")),
|
||||
INT2NUM(menvinfo.mi_numreaders) );
|
||||
|
|
@ -183,8 +183,7 @@ rmdbx_gather_stats( rmdbx_db_t *db )
|
|||
rmdbx_gather_environment_stats( stat, mstat, menvinfo );
|
||||
rmdbx_gather_reader_stats( db, stat, mstat, menvinfo );
|
||||
|
||||
/* database and subdatabases */
|
||||
|
||||
/* TODO: database and subdatabase stats */
|
||||
|
||||
return stat;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue