Skip to content

Commit

Permalink
osd/ReplicatedPG: EOPNOTSUPP on hit_set_get on non-replicated pools
Browse files Browse the repository at this point in the history
We need to use the async read stuff for this to work.

Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
Sage Weil committed Feb 19, 2014
1 parent a40cd50 commit a5c5d92
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/osd/ReplicatedPG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,11 @@ void ReplicatedPG::do_pg_op(OpRequestRef op)
result = -ENOENT;
break;
}
if (!pool.info.is_replicated()) {
// FIXME: EC not supported yet
result = -EOPNOTSUPP;
break;
}
result = osd->store->read(coll, oid, 0, 0, osd_op.outdata);
}
}
Expand Down

0 comments on commit a5c5d92

Please sign in to comment.