]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix assert(omap_num_objs <= MAX_OBJECTS) of OpenFileTable 32020/head
authorYan, Zheng <zyan@redhat.com>
Thu, 5 Dec 2019 02:16:27 +0000 (10:16 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 10 Dec 2019 12:15:12 +0000 (20:15 +0800)
commit21b1069eab43fdc2c91915d22f45802d017702fc
treef95038041de4ab559a3ad4becfbd17e79d903e56
parent831073c63eb56dd7107fa11c599f7a808f596b75
mds: fix assert(omap_num_objs <= MAX_OBJECTS) of OpenFileTable

Current behavior of the loop that commits dirty items is:

- If the last object is not full, it will be chosen for new item.
- If the last object becomes full, a new object is allocated, which
  becomes the new last object.

Above logical can make object count increase even there is free object.

Fixes: https://tracker.ceph.com/issues/36094
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/OpenFileTable.cc