]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix anchor table update
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 19 Nov 2012 02:43:34 +0000 (10:43 +0800)
committerSage Weil <sage@inktank.com>
Tue, 27 Nov 2012 05:14:44 +0000 (21:14 -0800)
commita3aad3c3c58ffd7cd556275cd1c7dbc69b3eb4dd
tree191b885fc37839d29b5320eb8c0f96a10d4fdf8d
parent57310268a0d61ea92429f8f738f7808021d04491
mds: fix anchor table update

The reference count of an anchor table entry that corresponds to
directory is number of anchored inodes under the directory. But
when updating anchor trace for an directory inode, the code only
increases/decreases its new/old ancestor anchor table entries'
reference counts by one.

This patch probably resolves BUG #1850.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/AnchorServer.cc
src/mds/AnchorServer.h