DragonFly BSD
DragonFly commits List (threaded) for 2010-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: HAMMER VFS - Fix assertion when taking snapshot


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 2 Feb 2010 10:18:22 -0800 (PST)

commit 60c46a8fae7ccb73c1185d3d9e28f01cb8fca33f
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Tue Feb 2 09:51:00 2010 -0800

    HAMMER VFS - Fix assertion when taking snapshot
    
    * hammer_ioc_add_snapshot() issues an ASOF lookup for the snapshot and
      then a non-ASOF insertion (insertions never use ASOF).  However, the
      ASOF lookup can modify the cursor's key (cursor.key_beg).
    
      This mismatch between the cursor's key and the leaf being inserted can
      then result in an assertion in the btree insertion code.
    
    * Reloading the key before doing the insertion fixes the problem.  Also
      document the case.
    
    Reported-by: Stathis Kamperis <ekamperi@gmail.com>

Summary of changes:
 sys/vfs/hammer/hammer_ioctl.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/60c46a8fae7ccb73c1185d3d9e28f01cb8fca33f


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]