Commit e90751db authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #1391

make the transaction that estimates the number of rows be a
DB_READ_UNCOMMITTED transaction

git-svn-id: file:///svn/mysql/tokudb-engine/src@8810 c7de825b-a66e-492c-adef-691d508d4ae1
parent 6801f9fe
......@@ -1003,7 +1003,7 @@ int ha_tokudb::estimate_num_rows(DB* db, u_int64_t* num_rows) {
bzero((void *)&data, sizeof(data));
if (transaction == NULL) {
error = db_env->txn_begin(db_env, 0, &transaction, 0);
error = db_env->txn_begin(db_env, 0, &transaction, DB_READ_UNCOMMITTED);
if (error) goto cleanup;
do_commit = true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment