]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Check for full before changing the cached obc 6918/head
authorAlexey Sheplyakov <asheplyakov@mirantis.com>
Wed, 16 Dec 2015 12:31:52 +0000 (15:31 +0300)
committerAlexey Sheplyakov <asheplyakov@mirantis.com>
Sat, 30 Jan 2016 09:13:50 +0000 (12:13 +0300)
commit2817ffcf4e57f92551b86388681fc0fe70c386ec
treed5b55259cc66d0f12261d529e160b24aa7b508f0
parent951339103d35bc8ee2de880f77aada40d15b592a
Check for full before changing the cached obc

ReplicatedPG::prepare_transaction(): check if the pool is full before
updating the cached ObjectContext to avoid the discrepancy between
the cached and the actual object size (and other metadata).
While at it improve the check itself: consider cluster full flag,
not just the pool full flag, also consider object count changes too,
not just bytes.

Based on commit a1eb380c3d5254f9f1fe34b4629e51d77fe010c1

Fixes: #13335
Signed-off-by: Alexey Sheplyakov <asheplyakov@mirantis.com>
src/osd/ReplicatedPG.cc