summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorRich Prohaska <prohaska@tokutek.com>2014-07-18 06:40:10 -0400
committerRich Prohaska <prohaska@tokutek.com>2014-07-18 06:40:10 -0400
commit444af9c8e7179d65cbe45341e75b15fe2d650baf (patch)
treebbc11ac0d41151def741414765158c6a02ef50f7 /storage
parente543cf162b6381846239679c389f0aeba33bd170 (diff)
downloadmariadb-git-444af9c8e7179d65cbe45341e75b15fe2d650baf.tar.gz
#261 debug prelocking for index scans
Diffstat (limited to 'storage')
-rw-r--r--storage/tokudb/ha_tokudb.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/tokudb/ha_tokudb.cc b/storage/tokudb/ha_tokudb.cc
index 989fbf560c7..4ebae49946b 100644
--- a/storage/tokudb/ha_tokudb.cc
+++ b/storage/tokudb/ha_tokudb.cc
@@ -5628,8 +5628,8 @@ cleanup:
TOKUDB_HANDLER_DBUG_RETURN(error);
}
-int ha_tokudb::prelock_range( const key_range *start_key, const key_range *end_key) {
- TOKUDB_HANDLER_DBUG_ENTER("");
+int ha_tokudb::prelock_range(const key_range *start_key, const key_range *end_key) {
+ TOKUDB_HANDLER_DBUG_ENTER("%p %p", start_key, end_key);
THD* thd = ha_thd();
int error = 0;
@@ -5710,7 +5710,7 @@ cleanup:
// Forward scans use read_range_first()/read_range_next().
//
int ha_tokudb::prepare_range_scan( const key_range *start_key, const key_range *end_key) {
- TOKUDB_HANDLER_DBUG_ENTER("");
+ TOKUDB_HANDLER_DBUG_ENTER("%p %p", start_key, end_key);
int error = prelock_range(start_key, end_key);
if (!error) {
range_lock_grabbed = true;
@@ -5724,7 +5724,7 @@ int ha_tokudb::read_range_first(
bool eq_range,
bool sorted)
{
- TOKUDB_HANDLER_DBUG_ENTER("");
+ TOKUDB_HANDLER_DBUG_ENTER("%p %p %u %u", start_key, end_key, eq_range, sorted);
int error = prelock_range(start_key, end_key);
if (error) { goto cleanup; }
range_lock_grabbed = true;