mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
e22d67bb8e
Implement db->pre_acquire_read_lock(), db->dbt_pos_infty(), and db->dbt_neg_infty() functions. Example usage to lock entire table: db->pre_acquire_read_lock(db, txn, db->dbt_neg_infty(), NULL, db->dbt_pos_infty(), NULL); (Above is for db with no duplicates, i.e. primary index). For db with duplicates: db->pre_acquire_read_lock(db, txn, db->dbt_neg_infty(), db->dbt_neg_infty(), db->dbt_pos_infty(), db->dbt_pos_infty()); Will return same lock error codes as db calls do (when locks fail). 0 = success DB_LOCK_NOTGRANTED = failed to obtain the lock. We can theoretically sleep and try again here. If you want to grab from DBT* A to infinity.. db->pre_acquire_read_lock(db, txn, A, NULL, db->dbt_pos_infty(), NULL); git-svn-id: file:///svn/tokudb@4402 c7de825b-a66e-492c-adef-691d508d4ae1 |
||
---|---|---|
.. | ||
db.h_4_1 | ||
db.h_4_3 | ||
db.h_4_4 | ||
db.h_4_5 | ||
db.h_4_6 | ||
make_db_h.c | ||
Makefile | ||
sample_offsets.c | ||
sample_offsets_32_4_1.h | ||
sample_offsets_32_4_3.h | ||
sample_offsets_32_4_4.h | ||
sample_offsets_32_4_5.h | ||
sample_offsets_32_4_6.h | ||
sample_offsets_64_4_1.h | ||
sample_offsets_64_4_3.h | ||
sample_offsets_64_4_4.h | ||
sample_offsets_64_4_5.h | ||
sample_offsets_64_4_6.h |