Commit 352566ea authored by Yoni Fogel's avatar Yoni Fogel

Addresses #855, #856. Standardize index to be unsigned, 32 bits. Used NULL instead of 0

git-svn-id: file:///svn/tokudb@4335 c7de825b-a66e-492c-adef-691d508d4ae1
parent 77639084
......@@ -37,7 +37,7 @@ struct omt {
struct omt_cursor {
OMT omt; // The omt this cursor is associated with. NULL if not present.
int index; // This is the state for the initial implementation
u_int32_t index; // This is the state for the initial implementation
OMTCURSOR next,prev; // circular linked list of all OMTCURSORs associated with omt.
};
......@@ -99,7 +99,7 @@ void toku_omt_cursor_invalidate (OMTCURSOR c) {
void toku_omt_cursor_destroy (OMTCURSOR *p) {
toku_omt_cursor_invalidate(*p);
toku_free(*p);
*p = 0;
*p = NULL;
}
static void invalidate_cursors (OMT omt) {
......
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