git: HAMMER VFS - Fix assertion when taking snapshot
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Feb 2 10:20:13 PST 2010
commit 60c46a8fae7ccb73c1185d3d9e28f01cb8fca33f
Author: Matthew Dillon <dillon at 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 at 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
More information about the Commits
mailing list