]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
sequential, non random trace usage
authoranwleung <anwleung@29311d96-e01e-0410-9327-a35deaab8ce9>
Thu, 29 Mar 2007 05:10:20 +0000 (05:10 +0000)
committeranwleung <anwleung@29311d96-e01e-0410-9327-a35deaab8ce9>
Thu, 29 Mar 2007 05:10:20 +0000 (05:10 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1320 29311d96-e01e-0410-9327-a35deaab8ce9

branches/aleung/security1/ceph/client/SyntheticClient.cc

index 2cfaa4b8f95330dfa2f50946d3fdf39039bd0f82..fa44490cc52b23f95569d5fc7f66490148b095c5 100644 (file)
@@ -412,12 +412,13 @@ int SyntheticClient::run()
        cout << "Setup trace:" << setupfile << endl;
 
        // choose random IOR2 file to open
-       int randf = rand() % 500;
+       //int randf = rand() % 500;
        // cant be trace 0, its broken
-       randf++;
+       //randf++;
+       int filenum = client->whoami + 1;
        
        ostringstream ost;
-       ost << "IOR2/IOR_trace_fileperproc.p" << randf << "t.cephtrace";
+       ost << "IOR2/IOR_trace_fileperproc.p" << filenum << "t.cephtrace";
        string tfile = ost.str();
        cout << "My " << count <<  " trace file:" << tfile << endl;