lib/lhm/locked_switcher.rb in lhm-1.0.3 vs lib/lhm/locked_switcher.rb in lhm-1.1.0

- old
+ new

@@ -4,14 +4,10 @@ require 'lhm/command' require 'lhm/migration' require 'lhm/sql_helper' module Lhm - # Switches origin with destination table with a write lock. Use this as - # a safe alternative to rename, which can cause slave inconsistencies: - # - # http://bugs.mysql.com/bug.php?id=39675 - # + # Switches origin with destination table nonatomically using a locked write. # LockedSwitcher adopts the Facebook strategy, with the following caveat: # # "Since alter table causes an implicit commit in innodb, innodb locks get # released after the first alter table. So any transaction that sneaks in # after the first alter table and before the second alter table gets