From 2c6b5600936326f21dcacdc80b33518e061f3fa1 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Wed, 1 Jun 2011 14:46:15 -0700 Subject: [PATCH] uclient: call the right function pointer on truncate fixes 67533e14439e9b to do what it meant to. Signed-off-by: Greg Farnum --- src/osdc/ObjectCacher.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osdc/ObjectCacher.cc b/src/osdc/ObjectCacher.cc index 5883b172d163c..68c9e9ddc8298 100644 --- a/src/osdc/ObjectCacher.cc +++ b/src/osdc/ObjectCacher.cc @@ -1711,9 +1711,9 @@ void ObjectCacher::truncate_set(ObjectSet *oset, vector& exls) } // did we truncate off dirty data? - if (flush_set_callback && + if (commit_set_callback && were_dirty && oset->dirty_tx == 0) - flush_set_callback(flush_set_callback_arg, oset); + commit_set_callback(flush_set_callback_arg, oset); } -- 2.39.5