Use upper_bound rather than lower_bound to compute the initial pd within
insert_trace, so that we don't attempt to remove it if it happens to be
in the same frag as the new reply.
Fixes: #1774
Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
request->readdir_end = end;
request->readdir_num = numdn;
- map<string,Dentry*>::iterator pd = dir->dentry_map.lower_bound(request->readdir_start);
+ map<string,Dentry*>::iterator pd = dir->dentry_map.upper_bound(request->readdir_start);
frag_t fg = request->readdir_frag;
Inode *diri = in;