git: HAMMER VFS - Fix assertion when taking snapshot

看板DFBSD_commit作者時間16年前 (2010/02/03 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1BQ6-fxK (DFBSD_commit)