From 01e8f506ff2266b90d676c89a45a91dda9ddcfc4 Mon Sep 17 00:00:00 2001 From: songweibin Date: Tue, 5 Dec 2017 12:14:21 +0800 Subject: [PATCH] rbd: comment/msg cleanup Signed-off-by: songweibin --- src/cls/journal/cls_journal.cc | 2 +- src/pybind/rbd/rbd.pyx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cls/journal/cls_journal.cc b/src/cls/journal/cls_journal.cc index c0bd7613867..673bc04228b 100644 --- a/src/cls/journal/cls_journal.cc +++ b/src/cls/journal/cls_journal.cc @@ -388,7 +388,7 @@ int journal_get_order(cls_method_context_t hctx, bufferlist *in, * none * * Output: - * order (uint8_t) + * splay_width (uint8_t) * @returns 0 on success, negative error code on failure */ int journal_get_splay_width(cls_method_context_t hctx, bufferlist *in, diff --git a/src/pybind/rbd/rbd.pyx b/src/pybind/rbd/rbd.pyx index 949504a34d2..a15e47b70c7 100644 --- a/src/pybind/rbd/rbd.pyx +++ b/src/pybind/rbd/rbd.pyx @@ -980,7 +980,7 @@ class RBD(object): with nogil: ret = rbd_trash_get(_ioctx, _image_id, &c_info) if ret != 0: - raise make_ex(ret, 'error restoring image from trash') + raise make_ex(ret, 'error retrieving image from trash') __source_string = ['USER', 'MIRRORING'] info = { -- 2.39.5