~ubuntu-branches/ubuntu/raring/ceph/raring

« back to all changes in this revision

Viewing changes to src/test/osd/RadosModel.cc

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2012-02-05 10:07:38 UTC
  • mfrom: (1.1.7) (0.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20120205100738-00s0bxx93mamy8tk
Tags: 0.41-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
  _begin();
16
16
}
17
17
 
18
 
void TestOp::finish()
 
18
void TestOp::finish(TestOp::CallbackInfo *info)
19
19
{
20
 
  _finish();
 
20
  _finish(info);
21
21
  //if (stat && finished()) stat->end(this);
22
22
}
23
23
 
24
 
void callback(librados::completion_t cb, void *arg) {
25
 
  TestOp *op = static_cast<TestOp*>(arg);
26
 
  op->finish();
 
24
void read_callback(librados::completion_t comp, void *arg) {
 
25
  TestOp* op = static_cast<TestOp*>(arg);
 
26
  op->finish(NULL);
 
27
}
 
28
 
 
29
void write_callback(librados::completion_t comp, void *arg) {
 
30
  std::pair<TestOp*, TestOp::CallbackInfo*> *args =
 
31
    static_cast<std::pair<TestOp*, TestOp::CallbackInfo*> *>(arg);
 
32
  TestOp* op = args->first;
 
33
  TestOp::CallbackInfo *info = args->second;
 
34
  op->finish(info);
 
35
  delete args;
 
36
  delete info;
27
37
}