-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile error for tag-0.9.0, may be a code bug #52
Comments
Hi. Which compiler did you use? There's an anonymous union which doesn't work really well with all compilers, but for debian buster-bullseye-sid and for centos 7-8-9 gcc and llvm it works fine. |
I compiled it on Euler with gcc 10.3.1, and just use command "cmake .. && make" to get executable binary files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In file osd_primary_subops.cpp, its function submit_primary_stab_subops maybe lost a couple of brace for member "len" of struct blockstore_op_t
void osd_t::submit_primary_stab_subops(osd_op_t *cur_op)
{
……
subops[i].bs_op = new blockstore_op_t((blockstore_op_t){
.opcode = BS_OP_STABLE,
.callback = [subop = &subops[i], this](blockstore_op_t bs_subop)
{
handle_primary_bs_subop(subop);
},
{
.len = (uint32_t)stab_osd.len,
},
.buf = (void)(op_data->unstable_writes + stab_osd.start),
});
bs->enqueue_op(subops[i].bs_op);
}
……
}
The text was updated successfully, but these errors were encountered: