diff options
author | Josh Durgin <josh.durgin@inktank.com> | 2013-10-16 09:56:35 -0700 |
---|---|---|
committer | Josh Durgin <josh.durgin@inktank.com> | 2013-10-16 09:56:35 -0700 |
commit | 81c8ce2ceee6cbd1a963f594e9e68fa948744268 (patch) | |
tree | 22a1cd677fe02d61fa86e9d3ad31ce43bcb7eed9 | |
parent | a49d66895d19d50d9b761dee5adcb62f49dbd2d7 (diff) | |
parent | 72ce2efab9ac78a94b8d769e60dfa126b6a667fa (diff) | |
download | ceph-81c8ce2ceee6cbd1a963f594e9e68fa948744268.tar.gz |
Merge pull request #724 from ceph/wip-4047
cls_rbd: do not make noise in osd log on rbd removal
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
-rw-r--r-- | src/cls/rbd/cls_rbd.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cls/rbd/cls_rbd.cc b/src/cls/rbd/cls_rbd.cc index 12947a08540..9348d5d7ad5 100644 --- a/src/cls/rbd/cls_rbd.cc +++ b/src/cls/rbd/cls_rbd.cc @@ -1525,7 +1525,8 @@ static int dir_remove_image_helper(cls_method_context_t hctx, string id_key = dir_key_for_id(id); int r = read_key(hctx, name_key, &stored_id); if (r < 0) { - CLS_ERR("error reading name to id mapping: %d", r); + if (r != -ENOENT) + CLS_ERR("error reading name to id mapping: %d", r); return r; } r = read_key(hctx, id_key, &stored_name); @@ -1619,7 +1620,8 @@ int dir_get_id(cls_method_context_t hctx, bufferlist *in, bufferlist *out) string id; int r = read_key(hctx, dir_key_for_name(name), &id); if (r < 0) { - CLS_ERR("error reading id for name '%s': %d", name.c_str(), r); + if (r != -ENOENT) + CLS_ERR("error reading id for name '%s': %d", name.c_str(), r); return r; } ::encode(id, *out); |