diff options
author | Sage Weil <sage@inktank.com> | 2012-10-22 17:30:37 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-10-22 17:39:47 -0700 |
commit | eed28daaf8927339c2ecae1b1b06c1b63678ab03 (patch) | |
tree | 115b34376a734ed81f0dc7797de9ab156ee2a76b /src/osd/ReplicatedPG.cc | |
parent | 31260a35309f292cbf5d951b32d143d3d6135400 (diff) | |
download | ceph-eed28daaf8927339c2ecae1b1b06c1b63678ab03.tar.gz |
osd: return EOPNOTSUPP on bad class or method name
Currently we return EIO, which isn't particularly informative.
Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'src/osd/ReplicatedPG.cc')
-rw-r--r-- | src/osd/ReplicatedPG.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 153984d34a0..7a9f9e80f99 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -1862,7 +1862,7 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops) ClassHandler::ClassMethod *method = cls->get_method(mname.c_str()); if (!method) { dout(10) << "call method " << cname << "." << mname << " does not exist" << dendl; - result = -EINVAL; + result = -EOPNOTSUPP; break; } |