diff options
author | Samuel Just <sam.just@inktank.com> | 2013-05-09 16:49:46 -0700 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2013-05-09 17:28:15 -0700 |
commit | d3dd99b725afaa026fe6f700ddc14a7f657f2170 (patch) | |
tree | 102ef3d821e8956de7bdced11b30c39bab504f00 /src/osd/OSD.h | |
parent | 0ef9b1e04991e1749a37f57fc964c8f0e6d7edc3 (diff) | |
download | ceph-d3dd99b725afaa026fe6f700ddc14a7f657f2170.tar.gz |
PG: no need to wait on DeletingStateRef for flush
Signed-off-by: Samuel Just <sam.just@inktank.com>
Diffstat (limited to 'src/osd/OSD.h')
-rw-r--r-- | src/osd/OSD.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/osd/OSD.h b/src/osd/OSD.h index 2a9f2827488..528896a73a5 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -143,7 +143,6 @@ typedef std::tr1::shared_ptr<ObjectStore::Sequencer> SequencerRef; class DeletingState { Mutex lock; Cond cond; - list<Context *> on_deletion_complete; enum { QUEUED, CLEARING_DIR, @@ -155,17 +154,6 @@ class DeletingState { public: DeletingState() : lock("DeletingState::lock"), status(QUEUED), stop_deleting(false) {} - void register_on_delete(Context *completion) { - Mutex::Locker l(lock); - on_deletion_complete.push_front(completion); - } - ~DeletingState() { - for (list<Context *>::iterator i = on_deletion_complete.begin(); - i != on_deletion_complete.end(); - ++i) { - (*i)->complete(0); - } - } /// check whether removal was canceled bool check_canceled() { |