]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: allow storing open file table in multiple omaps
authorYan, Zheng <zyan@redhat.com>
Thu, 15 Feb 2018 09:58:44 +0000 (17:58 +0800)
committerYan, Zheng <zyan@redhat.com>
Sat, 17 Feb 2018 11:56:57 +0000 (19:56 +0800)
commit9242ce9013024edcccdc2e375bbeede9ccc6b02c
treee7acc0782e97a10df0c639af1de09c84b15e4189
parent542fbd3933763933bf3af15e8f626c6d2391b0c6
mds: allow storing open file table in multiple omaps

Adjust number of objects to store open file table according to size of
the open file table. The basic idea is, when saving an entry for the
first time, assign it to an omap object. If all existing omap objects
are too full, allocate an new object. Total number of objects is stored
first object's omap header.

To guarantee consistency of open file table in the case of updating
multiple objects. mds needs to first journal the updates, then update
the original omaps.

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