]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: don't read metadata twice on image open
authorMykola Golub <to.my.trociny@gmail.com>
Tue, 24 Oct 2017 17:38:59 +0000 (20:38 +0300)
committerMykola Golub <to.my.trociny@gmail.com>
Thu, 26 Oct 2017 14:55:11 +0000 (17:55 +0300)
commit0cb485ecb391b1a42c47250f37cf4eb8d6180c58
treeeac83d485ec80506bbe06c2081d4ab8669b795f0
parentc337b8739d5d2788b2cf0fd46141e0ecb605d245
librbd: don't read metadata twice on image open

After adding get_metadata to RefreshRequest it has become redundant
in OpenRequest.

Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/image/OpenRequest.cc
src/librbd/image/OpenRequest.h
src/librbd/image/RefreshRequest.cc
src/test/librbd/image/test_mock_RefreshRequest.cc
src/test/librbd/mock/MockImageWatcher.h