Commit cb8ae339 authored by marko's avatar marko

branches/zip: ibuf_insert_low(): Avoid unnecessarily

acquiring and releasing ibuf_mutex.
parent 8ac83c39
......@@ -2843,14 +2843,14 @@ ibuf_insert_low(
mem_heap_free(heap);
mutex_enter(&ibuf_mutex);
if (err == DB_SUCCESS) {
mutex_enter(&ibuf_mutex);
ibuf_data->empty = FALSE;
ibuf_data->n_inserts++;
}
mutex_exit(&ibuf_mutex);
mutex_exit(&ibuf_mutex);
}
if ((mode == BTR_MODIFY_TREE) && (err == DB_SUCCESS)) {
ibuf_contract_after_insert(entry_size);
......
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