mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 22:43:04 +01:00
Remove not needed code.
This commit is contained in:
parent
59fa71d805
commit
0182b158d0
@ -2307,13 +2307,6 @@ bool PageSpace::extend(thread_db* tdbb, const ULONG pageNum)
|
||||
if (pageNum < maxPageNumber || MAX_EXTEND_BYTES < MIN_EXTEND_BYTES)
|
||||
return true;
|
||||
|
||||
#ifdef WIN_NT
|
||||
// hvlad: we need an attachment lock to get exclusive LCK_file_extend lock
|
||||
// see comments in winnt.cpp\FileExtendLock::FileExtendLock
|
||||
if (!tdbb->tdbb_attachment || !tdbb->tdbb_attachment->att_lock_owner_handle)
|
||||
return false;
|
||||
#endif
|
||||
|
||||
Database* dbb = tdbb->tdbb_database;
|
||||
|
||||
if (pageNum >= maxAlloc(dbb->dbb_page_size))
|
||||
|
Loading…
Reference in New Issue
Block a user