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

blah

git-svn-id: file:///svn/mysql/tokudb-engine/src@11211 c7de825b-a66e-492c-adef-691d508d4ae1
parent eed616fe
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#pragma implementation // gcc: Class implementation #pragma implementation // gcc: Class implementation
#endif #endif
#define MYSQL_SERVER 1 #define MYSQL_SERVER 1
#include "mysql_priv.h" #include "mysql_priv.h"
#include "hatoku_cmp.h" #include "hatoku_cmp.h"
...@@ -3837,20 +3838,20 @@ int ha_tokudb::create(const char *name, TABLE * form, HA_CREATE_INFO * create_in ...@@ -3837,20 +3838,20 @@ int ha_tokudb::create(const char *name, TABLE * form, HA_CREATE_INFO * create_in
if (!(error = (db_create(&status_block, db_env, 0)))) { if (!(error = (db_create(&status_block, db_env, 0)))) {
make_name(newname, name, "status"); make_name(newname, name, "status");
fn_format(name_buff, newname, "", 0, MY_UNPACK_FILENAME); fn_format(name_buff, newname, "", 0, MY_UNPACK_FILENAME);
// //
// create a row descriptor that is the same as a hidden primary key // create a row descriptor that is the same as a hidden primary key
// //
row_descriptor.size = create_toku_key_descriptor( row_descriptor.size = create_toku_key_descriptor(
row_desc_buff, row_desc_buff,
true, true,
false, false,
NULL, NULL,
false, false,
NULL NULL
); );
error = status_block->set_descriptor(status_block, &row_descriptor); error = status_block->set_descriptor(status_block, &row_descriptor);
if (error) { if (error) {
goto cleanup; goto cleanup;
} }
if (!(error = (status_block->open(status_block, NULL, name_buff, NULL, DB_BTREE, DB_CREATE, 0)))) { if (!(error = (status_block->open(status_block, NULL, name_buff, NULL, DB_BTREE, DB_CREATE, 0)))) {
uint version = HA_TOKU_VERSION; uint version = HA_TOKU_VERSION;
......
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