git: HAMMER VFS - Hack cursor iterator when unlocked cursor move

看板DFBSD_commit作者時間16年前 (2010/03/16 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 6dc17446feb14cbca471e4eecf2519d215f5054d Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Sat Mar 13 21:16:38 2010 -0800 HAMMER VFS - Hack cursor iterator when unlocked cursor moved to parent * It is possible to reverse-index a cursor while it is unlocked due to a node deletion moving cursors on that node to the parent, and a subsequent insertion then inserting new elements between the cursor's current position and its expected iteration range. * Detect the case with a new flag (hack!) HAMMER_CURSOR_ITERATE_CHECK and just iterate past the elements outside the iteration range in this case. Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx> Summary of changes: sys/vfs/hammer/hammer_btree.c | 89 ++++++++++++++++++++++++++++++++++----- sys/vfs/hammer/hammer_cursor.c | 10 ++++- sys/vfs/hammer/hammer_cursor.h | 1 + 3 files changed, 87 insertions(+), 13 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6dc17446feb14cbca471e4eecf2519d215f5054d -- DragonFly BSD source repository
文章代碼(AID): #1BddO7lt (DFBSD_commit)