ndb - post merge fixes

parent 64d10977
...@@ -1026,8 +1026,6 @@ Dbtup::disk_page_alloc(Signal* signal, ...@@ -1026,8 +1026,6 @@ Dbtup::disk_page_alloc(Signal* signal,
Disk_alloc_info& alloc= fragPtrP->m_disk_alloc_info; Disk_alloc_info& alloc= fragPtrP->m_disk_alloc_info;
Uint64 lsn; Uint64 lsn;
Uint32 old_free = pagePtr.p->free_space;
Uint32 old_bits= alloc.calc_page_free_bits(old_free);
if (tabPtrP->m_attributes[DD].m_no_of_varsize == 0) if (tabPtrP->m_attributes[DD].m_no_of_varsize == 0)
{ {
ddassert(pagePtr.p->uncommitted_used_space > 0); ddassert(pagePtr.p->uncommitted_used_space > 0);
...@@ -1059,7 +1057,6 @@ Dbtup::disk_page_free(Signal *signal, ...@@ -1059,7 +1057,6 @@ Dbtup::disk_page_free(Signal *signal,
Uint32 logfile_group_id= fragPtrP->m_logfile_group_id; Uint32 logfile_group_id= fragPtrP->m_logfile_group_id;
Disk_alloc_info& alloc= fragPtrP->m_disk_alloc_info; Disk_alloc_info& alloc= fragPtrP->m_disk_alloc_info;
Uint32 old_free= pagePtr.p->free_space; Uint32 old_free= pagePtr.p->free_space;
Uint32 old_bits= alloc.calc_page_free_bits(old_free);
Uint32 sz; Uint32 sz;
Uint64 lsn; Uint64 lsn;
...@@ -1086,7 +1083,6 @@ Dbtup::disk_page_free(Signal *signal, ...@@ -1086,7 +1083,6 @@ Dbtup::disk_page_free(Signal *signal,
} }
Uint32 new_free = pagePtr.p->free_space; Uint32 new_free = pagePtr.p->free_space;
Uint32 new_bits = alloc.calc_page_free_bits(new_free);
Uint32 ext = pagePtr.p->m_extent_info_ptr; Uint32 ext = pagePtr.p->m_extent_info_ptr;
Uint32 used = pagePtr.p->uncommitted_used_space; Uint32 used = pagePtr.p->uncommitted_used_space;
......
...@@ -967,7 +967,7 @@ void Dbtup::releaseFragment(Signal* signal, Uint32 tableId, ...@@ -967,7 +967,7 @@ void Dbtup::releaseFragment(Signal* signal, Uint32 tableId,
cb.m_callbackFunction = cb.m_callbackFunction =
safe_cast(&Dbtup::drop_table_log_buffer_callback); safe_cast(&Dbtup::drop_table_log_buffer_callback);
Uint32 sz= sizeof(Disk_undo::Drop) >> 2; Uint32 sz= sizeof(Disk_undo::Drop) >> 2;
(void) c_lgman->alloc_log_space(logfile_group_id, sz); int r0 = c_lgman->alloc_log_space(logfile_group_id, sz);
if (r0) if (r0)
{ {
jam(); jam();
......
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