]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: pick_inode_snap should consider follows==0 valid
authorSage Weil <sage@newdream.net>
Tue, 2 Dec 2008 20:03:15 +0000 (12:03 -0800)
committerSage Weil <sage@newdream.net>
Tue, 2 Dec 2008 21:50:15 +0000 (13:50 -0800)
commit1876ca5ad4b92f0794c91d15502c16ad747dbf8b
tree1d7a4669b0209acf0b91a906ada7e8f148a621bf
parenta31778ffd8940062456fcad45e589fe9363b3632
mds: pick_inode_snap should consider follows==0 valid

I suspect a larger audit of 'follows' semantics may be necessary..
but this fixes the bug I was seeing with:

echo asdf > a
mkdir .snap/1
echo qwer > b
mkdir .snap/2
echo zxcv > a
mkdir .snap/3
sync
cat .snap/1/a   # empty
ll .snap/*      # hangs
src/mds/MDCache.cc