Commit 916f7326 authored by John Esmet's avatar John Esmet Committed by Yoni Fogel

[t:3938] update documentation for 3938 design


git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@35756 c7de825b-a66e-492c-adef-691d508d4ae1
parent 61d727d4
...@@ -57,8 +57,9 @@ error: ...@@ -57,8 +57,9 @@ error:
release_hton_init_writelock(); release_hton_init_writelock();
} }
tokudb_hton_done_func() { tokudb_end() {
grab_hton_init_writelock(); grab_hton_init_writelock();
assert(tokudb_hton_initialized);
... ...
tokudb_hton_initialized = 0; tokudb_hton_initialized = 0;
release_hton_init_writelock(); release_hton_init_writelock();
...@@ -66,18 +67,6 @@ tokudb_hton_done_func() { ...@@ -66,18 +67,6 @@ tokudb_hton_done_func() {
// grab a read lock while assuming // grab a read lock while assuming
// the handlerton is usable // the handlerton is usable
//
// the user data init/done functions
// do not actually require this, but
// for sake of clarity we describe
// the algorithms as if they did.
// more importantly, the user data
// fill function DOES
tokudb_user_data_init_func() {
grab_hton_init_readlock();
...
release_hton_init_readlock();
}
tokudb_user_data_fill() { tokudb_user_data_fill() {
grab_hton_init_readlock(); grab_hton_init_readlock();
...@@ -89,9 +78,14 @@ error: ...@@ -89,9 +78,14 @@ error:
release_hton_init_readlock(); release_hton_init_readlock();
} }
tokudb_user_data_done_func() { tokudb_user_data_exact_fill() {
grab_hton_init_readlock(); grab_hton_init_readlock();
if (!tokudb_hton_initialized) {
goto error;
}
... ...
error:
release_hton_init_readlock(); release_hton_init_readlock();
} }
}}} }}}
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