Commit 948557d7 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Simplify {{{assert(0); return;}}} into {{{abort()}}}. Addresses #1195.

git-svn-id: file:///svn/toku/tokudb.1195@7468 c7de825b-a66e-492c-adef-691d508d4ae1
parent a8ad4bc1
...@@ -1189,8 +1189,7 @@ static int apply_cmd_to_le_committed (u_int32_t klen, void *kval, ...@@ -1189,8 +1189,7 @@ static int apply_cmd_to_le_committed (u_int32_t klen, void *kval,
newlen, disksize, new_data); newlen, disksize, new_data);
case BRT_NONE: break; case BRT_NONE: break;
} }
assert(0); abort();
return 0;
} }
static int apply_cmd_to_le_both (TXNID xid, static int apply_cmd_to_le_both (TXNID xid,
...@@ -1238,8 +1237,7 @@ static int apply_cmd_to_le_both (TXNID xid, ...@@ -1238,8 +1237,7 @@ static int apply_cmd_to_le_both (TXNID xid,
newlen, disksize, new_data); newlen, disksize, new_data);
case BRT_NONE: break; case BRT_NONE: break;
} }
assert(0); abort();
return 0;
} }
static int apply_cmd_to_le_provdel (TXNID xid, static int apply_cmd_to_le_provdel (TXNID xid,
...@@ -1373,8 +1371,7 @@ apply_cmd_to_leaf (BRT_CMD cmd, ...@@ -1373,8 +1371,7 @@ apply_cmd_to_leaf (BRT_CMD cmd,
case BRT_NONE: case BRT_NONE:
break; break;
} }
assert(0); abort();
return 0;
} else { } else {
LESWITCHCALL(stored_data, apply_cmd_to, cmd, LESWITCHCALL(stored_data, apply_cmd_to, cmd,
newlen, disksize, new_data); newlen, disksize, new_data);
......
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