)]}'
{"gnocchi/storage/incoming/ceph.py":[{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"c0e9251669288933eb3d874d37328ebb34d679b9","unresolved":false,"context_lines":[{"line_number":167,"context_line":"        with rados.WriteOpCtx() as op:"},{"line_number":168,"context_line":"            # Make sure we\u0027re not deleting a file that got new measures in the meantime"},{"line_number":169,"context_line":"            self.ioctx.operate_write_op_assert_version(op, version)"},{"line_number":170,"context_line":"            self.ioctx.operate_write_op_truncate(op, object_name)"},{"line_number":171,"context_line":"            # NOTE(sileht): come on Ceph, no return code"},{"line_number":172,"context_line":"            # for this operation ?!!"},{"line_number":173,"context_line":"            self.ioctx.remove_omap_keys(op, (object_name,))"}],"source_content_type":"text/x-python","patch_set":2,"id":"ffe62b97_64d8577a","line":170,"updated":"2017-03-28 15:56:06.000000000","message":"oh, there\u0027s a truncate? nice. can\u0027t we just get the length we read above and truncate to there?","commit_id":"d037e0528747a66598292da02192cfaa045ebac8"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"27ec812ba546193bed77c292dceb718ccf60103b","unresolved":false,"context_lines":[{"line_number":167,"context_line":"        with rados.WriteOpCtx() as op:"},{"line_number":168,"context_line":"            # Make sure we\u0027re not deleting a file that got new measures in the meantime"},{"line_number":169,"context_line":"            self.ioctx.operate_write_op_assert_version(op, version)"},{"line_number":170,"context_line":"            self.ioctx.operate_write_op_truncate(op, object_name)"},{"line_number":171,"context_line":"            # NOTE(sileht): come on Ceph, no return code"},{"line_number":172,"context_line":"            # for this operation ?!!"},{"line_number":173,"context_line":"            self.ioctx.remove_omap_keys(op, (object_name,))"}],"source_content_type":"text/x-python","patch_set":2,"id":"ffe62b97_bf8e6c76","line":170,"in_reply_to":"ffe62b97_64d8577a","updated":"2017-03-28 16:11:04.000000000","message":"no you have to truncate the whole file or from offset:\nhttp://docs.ceph.com/docs/master/rados/api/librados/#rados_write_op_truncate","commit_id":"d037e0528747a66598292da02192cfaa045ebac8"}]}
