Skip to content

Commit

Permalink
os/bluestore: implement blackhole
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Nov 4, 2016
1 parent 6c1fc6d commit d7c8f2d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/os/bluestore/BlueStore.cc
Expand Up @@ -6931,6 +6931,15 @@ int BlueStore::queue_transactions(
ObjectStore::Transaction::collect_contexts(
tls, &onreadable, &ondisk, &onreadable_sync);

if (g_conf->objectstore_blackhole) {
dout(0) << __func__ << " objectstore_blackhole = TRUE, dropping transaction"
<< dendl;
delete ondisk;
delete onreadable;
delete onreadable_sync;
return 0;
}

// set up the sequencer
OpSequencer *osr;
assert(posr);
Expand Down

0 comments on commit d7c8f2d

Please sign in to comment.