save memory.. don't keep buffers after apply_write

git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@663 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
sage 2006-02-21 20:46:47 +00:00
parent bd1ac7ce37
commit 49a605b0b7

View File

@ -2042,7 +2042,7 @@ void OSD::handle_op(MOSDOp *op)
void OSD::enqueue_op(object_t oid, MOSDOp *op)
{
while (pending_ops > g_conf.osd_max_opq) {
dout(0) << "enqueue_op waiting for pending_ops " << pending_ops << " to drop to " << g_conf.osd_max_opq << endl;
dout(10) << "enqueue_op waiting for pending_ops " << pending_ops << " to drop to " << g_conf.osd_max_opq << endl;
op_queue_cond.Wait(osd_lock);
}
@ -2244,8 +2244,8 @@ int OSD::apply_write(MOSDOp *op, version_t v, Context *onsafe)
{
// take buffers from the message
bufferlist bl;
bl = op->get_data();
//bl.claim( op->get_data() );
//bl = op->get_data();
bl.claim( op->get_data() ); // save some memory?
// write
int r = 0;