unbit/uwsgi — pull request #736 by gdahlm (2014-10-07 06:35:44+00:00)
Title: use _full write methods in rados plugin to truncate PUT request objects

Use librados rados_write_full and rados_aio_write_full methods to ensure that PUT requests to existing objects are truncated if they are smaller than the original objects. Mainly this change will reduce disk utilization on the ceph cluster. The *_full methods do also offer atomic truncate and update operations. As the offset is anchored at 0 in the current code there is no difference in behavior for the client.