mariadb/buildheader
Yoni Fogel e22d67bb8e Addresses #893
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
2008-06-06 17:50:38 +00:00
..
db.h_4_1 Addresses #893 2008-06-06 17:50:38 +00:00
db.h_4_3 Addresses #893 2008-06-06 17:50:38 +00:00
db.h_4_4 Addresses #893 2008-06-06 17:50:38 +00:00
db.h_4_5 Addresses #893 2008-06-06 17:50:38 +00:00
db.h_4_6 Addresses #893 2008-06-06 17:50:38 +00:00
make_db_h.c Addresses #893 2008-06-06 17:50:38 +00:00
Makefile Fix {{{db.h_4_6}}}. Fixes #560. 2008-03-19 14:59:40 +00:00
sample_offsets.c compute 32-bit offsets for {{{set_lg_max}}} and {{{get_lg_max}}}. Addresses #79. 2008-03-07 20:10:21 +00:00
sample_offsets_32_4_1.h add env->set/get_lk_max_locks. closes #341 2008-02-06 12:54:17 +00:00
sample_offsets_32_4_3.h compute 32-bit offsets for {{{set_lg_max}}} and {{{get_lg_max}}}. Addresses #79. 2008-03-07 20:57:13 +00:00
sample_offsets_32_4_4.h compute 32-bit offsets for {{{set_lg_max}}} and {{{get_lg_max}}}. Addresses #79. 2008-03-07 20:57:13 +00:00
sample_offsets_32_4_5.h compute 32-bit offsets for {{{set_lg_max}}} and {{{get_lg_max}}}. Addresses #79. 2008-03-07 20:57:13 +00:00
sample_offsets_32_4_6.h compute 32-bit offsets for {{{set_lg_max}}} and {{{get_lg_max}}}. Addresses #79. 2008-03-07 20:57:13 +00:00
sample_offsets_64_4_1.h add env->set/get_lk_max_locks. closes #341 2008-02-06 12:54:17 +00:00
sample_offsets_64_4_3.h compute 32-bit offsets for {{{set_lg_max}}} and {{{get_lg_max}}}. Addresses #79. 2008-03-07 20:10:21 +00:00
sample_offsets_64_4_4.h compute 32-bit offsets for {{{set_lg_max}}} and {{{get_lg_max}}}. Addresses #79. 2008-03-07 20:10:21 +00:00
sample_offsets_64_4_5.h compute 32-bit offsets for {{{set_lg_max}}} and {{{get_lg_max}}}. Addresses #79. 2008-03-07 20:10:21 +00:00
sample_offsets_64_4_6.h compute 32-bit offsets for {{{set_lg_max}}} and {{{get_lg_max}}}. Addresses #79. 2008-03-07 20:10:21 +00:00