]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: protect open file table against partial omap update
authorYan, Zheng <zyan@redhat.com>
Sat, 27 Jan 2018 05:29:17 +0000 (13:29 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 15 Feb 2018 09:09:24 +0000 (17:09 +0800)
commitf5f137c8590a9c591e86d3d5c6d3a02aa7be66ed
tree32f86d1dc32fe0dd0c5cde0111f3a899c6eeb5b5
parent242ed5bba8c160677adb2edf80d8df84bf37c1c3
mds: protect open file table against partial omap update

When omap update is too large for single osd request, mds first stores
the update in special journal keys in the omap, then sends requests to
update the original omap. The first request of the second phase also
updates a flag in omap header, indicating that update is journaled, The
last request of the second phase removes journal keys and removes the
journal flag in omap header

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/OpenFileTable.cc
src/mds/OpenFileTable.h