These checks don't seem required for the new ODS 11 optimizer logic. But they may cause bad effects, see the second example in CORE-3312: Sub-optimal join plan when the slave table depends on the master one via the OR predicate.
Let's remove them and see whether any regressions arise.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52224 65644016-39b1-43b1-bf79-96bc8fe82c15
Attempted to fix CORE-3314: Dependencies are not removed after dropping the procedure and the table it depends on in the same transaction.
The main goal of MET_clear_cache() is to release the cached requests, not to cleanup the metadata at all (and it's not done for triggers, BTW). So setting PRC_obsolete and keeping the object cached seems safe, it will be rescanned upon the next reference.
The fix is to be field tested by the customer.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52226 65644016-39b1-43b1-bf79-96bc8fe82c15
Backported fix for CORE-3320 - Some MERGE syntax can crash the server.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52231 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed bug CORE-3095 : Client receive event's with count equal to 1 despite of how many times EVENT was POSTed in same transaction

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52235 65644016-39b1-43b1-bf79-96bc8fe82c15
nightly update

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52246 65644016-39b1-43b1-bf79-96bc8fe82c15
Move VALIDATE_LOCK_TABLE from lock.h into lock.cpp : at allows to rebuild just lock.cpp if some need to disable validation of lock table in DEBUG build or enable validation in RELEASE build.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52249 65644016-39b1-43b1-bf79-96bc8fe82c15
Misc

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52250 65644016-39b1-43b1-bf79-96bc8fe82c15
Warnings

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52251 65644016-39b1-43b1-bf79-96bc8fe82c15
nightly update

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52256 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed deadlock caused by my commit for CORE-3194

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52257 65644016-39b1-43b1-bf79-96bc8fe82c15
Backported Adriano's correction.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52258 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed CORE-3245: SUBSTRING on long blobs truncates result to 32767 if third argument not present.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52259 65644016-39b1-43b1-bf79-96bc8fe82c15
Improvement CORE-3323 : Ability to cancel waiting in lock manager

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52262 65644016-39b1-43b1-bf79-96bc8fe82c15
Backported fix for CORE-3329:Windows administrator gets RDB$ADMIN role when this is not expected

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52266 65644016-39b1-43b1-bf79-96bc8fe82c15
Improvement CORE-3324 : ftracemgr should flush its output from time to time

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52267 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed bug CORE-3325 : At high load it is possible that new process could fail to map shared memory 

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52269 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed bug CORE-3326 : Fast mutex could be left in locked state by dead process

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52272 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed bug CORE-3327 : Thread pool in network server could create more threads than necessary

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52277 65644016-39b1-43b1-bf79-96bc8fe82c15
Removed the supposedly wrong checkout (it was added in v2.0), as theoretically it can lead to race conditions in the page cache.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52281 65644016-39b1-43b1-bf79-96bc8fe82c15
nightly update

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@52287 65644016-39b1-43b1-bf79-96bc8fe82c15