]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: fix ENOSPC checking 6052/head
authorSage Weil <sage@redhat.com>
Thu, 24 Sep 2015 23:27:16 +0000 (19:27 -0400)
committerSage Weil <sage@redhat.com>
Thu, 24 Sep 2015 23:27:16 +0000 (19:27 -0400)
commita1eb380c3d5254f9f1fe34b4629e51d77fe010c1
tree0609dddceea1358dd9e4886483069e55189dd6ed
parentda7f3adda4a7fbb3b6b805641ba5b1916425c782
osd/ReplicatedPG: fix ENOSPC checking

1. We need to return ENOSPC *before* we apply our side-effects to the obc
cache in finish_ctx().

2. Consider object count changes too, not just bytes.

3. Consider cluster full flag, not just the pool flag.

4. Reply only if FULL_TRY; silently drop ops that were sent despite the
full flag.

Fixes: #13098
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ReplicatedPG.cc