Skip to content

Commit

Permalink
osd: return -EDQUOT instead of -ENOSPC if it is a pool quota
Browse files Browse the repository at this point in the history
The pool quota error should return EDQUOT intead of ENOSPC.

Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Oct 1, 2015
1 parent 4c0277f commit ea93ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osd/ReplicatedPG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6149,7 +6149,7 @@ int ReplicatedPG::prepare_transaction(OpContext *ctx)
} else if (m->has_flag(CEPH_OSD_FLAG_FULL_TRY)) {
// they tried, they failed.
dout(20) << __func__ << " full, replying to FULL_TRY op" << dendl;
return -ENOSPC;
return pool.info.has_flag(pg_pool_t::FLAG_FULL) ? -EDQUOT : -ENOSPC;
} else {
// drop request
dout(20) << __func__ << " full, dropping request (bad client)" << dendl;
Expand Down

0 comments on commit ea93ead

Please sign in to comment.