Skip to content

Commit c25fc7b

Browse files
author
Matt Benjamin
committed
Message::set_data cannot preserve constness.
Signed-off-by: Matt Benjamin <matt@cohortfs.com>
1 parent dde2b07 commit c25fc7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client/Client.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4296,7 +4296,7 @@ int Client::mds_command(
42964296
// Construct and send MCommand
42974297
MCommand *m = new MCommand(monclient->get_fsid());
42984298
m->cmd = cmd;
4299-
m->set_data(inbl);
4299+
m->set_data(const_cast<bufferlist&>(inbl));
43004300
m->set_tid(tid);
43014301
conn->send_message(m);
43024302
}

0 commit comments

Comments
 (0)