Don't immediately kill all transactions when acquiring DDL lock.
authorPetr Jelinek <pjmodos@pjmodos.net>
Fri, 1 May 2015 13:23:40 +0000 (15:23 +0200)
committerPetr Jelinek <pjmodos@pjmodos.net>
Fri, 1 May 2015 13:23:40 +0000 (15:23 +0200)
commit0e02cc27d58d8e4fd2684a4e39036a72e4323eec
tree7f1acbc2e40ef5b6201a84c1fb7267e54fe3c554
parent9e5da49fd8ba000f884b909c13494f3f272d9f96
Don't immediately kill all transactions when acquiring DDL lock.

Previously we just canceled all transactions in database when acking DDL
lock. This code only cancels transactions which did any writes and gives
them some time (currently hardcoded to 10s) of grace period to finish
what they are doing.
bdr_locks.c