]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cls_journal: new tag management methods and handling
authorJason Dillaman <dillaman@redhat.com>
Wed, 3 Feb 2016 22:33:24 +0000 (17:33 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 5 Feb 2016 20:21:26 +0000 (15:21 -0500)
commitfa6d0ba9648ac58e532bd6668f71d899d47e7649
treeb930caa2e2200cf473c799302f85a6a2e6233556
parent243d91db68674142e01364dcdc9fdc98a33fe520
cls_journal: new tag management methods and handling

In the case of librbd, a new tag will be allocated when the
exclusive lock is acquired.  All tags for the same dataset
(e.g. librbd image) will belong to the same class.  Tags are
automatically pruned on tag create / client unregister
if no other clients' commit position would require the tags.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/cls/journal/cls_journal.cc
src/cls/journal/cls_journal_client.cc
src/cls/journal/cls_journal_client.h
src/cls/journal/cls_journal_types.cc
src/cls/journal/cls_journal_types.h
src/test/cls_journal/test_cls_journal.cc