]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
journal: optimize object overflow detection 28240/head
authorMykola Golub <mgolub@suse.com>
Fri, 24 May 2019 06:07:51 +0000 (07:07 +0100)
committerMykola Golub <mgolub@suse.com>
Sat, 25 May 2019 07:28:09 +0000 (08:28 +0100)
commit83461c42b03cf7d407ac3c5d02043cca1e908015
tree6764eba80d6d93c5602246c36935ae3279091223
parent651dac4872f8d82606948d58fffd5f7bfa636b51
journal: optimize object overflow detection

Previously to detect overflow we were sending journal append
requests until -EOVERFLOW is returned by osd. This means that we
had at least one waste (rejected) request per object set (though
there may be more if the number of in-flight appends is not
limited).

We can easily predict when the osd will start to return
-EOVERFLOW and avoid such additional requests.

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/journal/ObjectRecorder.cc
src/test/journal/test_ObjectRecorder.cc