]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
uclient: call the right function pointer on truncate
authorGreg Farnum <gregory.farnum@dreamhost.com>
Wed, 1 Jun 2011 21:46:15 +0000 (14:46 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Fri, 3 Jun 2011 01:35:44 +0000 (18:35 -0700)
fixes 67533e14439e9b to do what it meant to.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/osdc/ObjectCacher.cc

index 5883b172d163c4cca9c2bf3ea9a07b0c22dfe592..68c9e9ddc82983a7043e0ec3f9fb2a433b44a8f0 100644 (file)
@@ -1711,9 +1711,9 @@ void ObjectCacher::truncate_set(ObjectSet *oset, vector<ObjectExtent>& 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);
 }