Skip to content

Instantly share code, notes, and snippets.

@cbodley
Created September 2, 2020 18:32
Show Gist options
  • Save cbodley/45ce546798ef194e2db5b9cc9eacf9ae to your computer and use it in GitHub Desktop.
Save cbodley/45ce546798ef194e2db5b9cc9eacf9ae to your computer and use it in GitHub Desktop.
ret = target_shards_mgr.finish();
if (ret < 0) {
lderr(store->ctx()) << "ERROR: failed to reshard" << dendl;
return -EIO;
}
+ if (ret = f.check("link-bucket"); ret < 0) {
+ return ret;
+ }
ret = store->ctl()->bucket->link_bucket(new_bucket_info.owner, new_bucket_info.bucket, bucket_info.creation_time, null_yield);
if (ret < 0) {
lderr(store->ctx()) << "failed to link new bucket instance (bucket_id=" << new_bucket_info.bucket.bucket_id << ": " << cpp_strerror(-ret) << ")" << dendl;
return ret;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment