summaryrefslogtreecommitdiffstats
path: root/src/test/librbd/test_fixture.cc
diff options
context:
space:
mode:
authorRicardo Dias <rdias@suse.com>2017-01-10 16:11:19 +0100
committerRicardo Dias <rdias@suse.com>2017-01-16 19:25:58 +0100
commit61af1c25015de087a2423811548d975dd7d430b4 (patch)
tree3bbf8270063fd3f1037ddaf90f8c7a7c054ccb65 /src/test/librbd/test_fixture.cc
parentMerge pull request #12939 from johnlinp/fix-nspr-include (diff)
downloadceph-61af1c25015de087a2423811548d975dd7d430b4.tar.xz
ceph-61af1c25015de087a2423811548d975dd7d430b4.zip
librbd: allow to open an image without opening parent image
Fixes: http://tracker.ceph.com/issues/18325 Signed-off-by: Ricardo Dias <rdias@suse.com>
Diffstat (limited to 'src/test/librbd/test_fixture.cc')
-rw-r--r--src/test/librbd/test_fixture.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/librbd/test_fixture.cc b/src/test/librbd/test_fixture.cc
index 4b830eb881b..7b7dc05a7c2 100644
--- a/src/test/librbd/test_fixture.cc
+++ b/src/test/librbd/test_fixture.cc
@@ -75,7 +75,7 @@ int TestFixture::open_image(const std::string &image_name,
*ictx = new librbd::ImageCtx(image_name.c_str(), "", NULL, m_ioctx, false);
m_ictxs.insert(*ictx);
- return (*ictx)->state->open();
+ return (*ictx)->state->open(false);
}
int TestFixture::snap_create(librbd::ImageCtx &ictx,