From 018c23fdc8043a098721b2764ec1ac61cfd0b75e Mon Sep 17 00:00:00 2001
From: Philippe Canal <pcanal@fnal.gov>
Date: Wed, 19 Dec 2018 17:13:20 -0600
Subject: [PATCH] Set the cluster size rather than then AutoSave frequency

---
 tree/tree/test/TOffsetGeneration.cxx | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tree/tree/test/TOffsetGeneration.cxx b/tree/tree/test/TOffsetGeneration.cxx
index 0486c0e9340..4642fea113e 100644
--- a/tree/tree/test/TOffsetGeneration.cxx
+++ b/tree/tree/test/TOffsetGeneration.cxx
@@ -22,7 +22,7 @@ protected:
       features.Set(ROOT::Experimental::EIOFeatures::kGenerateOffsetMap);
       tree->SetIOFeatures(features);
       tree->SetBit(TTree::kOnlyFlushAtCluster);
-      tree->SetAutoSave(10);
+      tree->SetAutoFlush(10);
       Int_t sample[10];
       Int_t elem = 1;
       tree->Branch("elem", &elem, "elem/I");
@@ -39,7 +39,7 @@ protected:
       file = new TFile("TOffsetGeneration2.root", "RECREATE");
       tree = new TTree("tree", "A test tree");
       tree->SetBit(TTree::kOnlyFlushAtCluster);
-      tree->SetAutoSave(10);
+      tree->SetAutoFlush(10);
       tree->Branch("elem", &elem, "elem/I");
       tree->Branch("sample", &sample, "sample[elem]/I");
 
@@ -52,7 +52,7 @@ protected:
       file = new TFile("TOffsetGeneration3.root", "RECREATE");
       tree = new TTree("tree", "A test tree");
       tree->SetBit(TTree::kOnlyFlushAtCluster);
-      tree->SetAutoSave(5000);
+      tree->SetAutoFlush(5000);
       ElementStruct sample2;
       sample2.i = 1;
       double d[10];
@@ -72,7 +72,7 @@ protected:
       features.Set(ROOT::Experimental::EIOFeatures::kGenerateOffsetMap);
       tree2->SetIOFeatures(features);
       tree2->SetBit(TTree::kOnlyFlushAtCluster);
-      tree2->SetAutoSave(5000);
+      tree2->SetAutoFlush(5000);
       sample2.i = 1;
       sample2.d = d;
       tree2->Branch("sample", &sample2, 32*1024, 99);
@@ -93,8 +93,8 @@ protected:
       tree->SetIOFeatures(features);
       tree->SetBit(TTree::kOnlyFlushAtCluster);
       tree2->SetBit(TTree::kOnlyFlushAtCluster);
-      tree->SetAutoSave(5000);
-      tree2->SetAutoSave(5000);
+      tree->SetAutoFlush(5000);
+      tree2->SetAutoFlush(5000);
       sample2.i = 1;
       sample2.d = d;
       auto br = tree->Branch("sample", &sample2, 32*1024, 99);
-- 
GitLab