Skip to content

Commit

Permalink
Merge pull request ceph#50975 from yuvalif/wip-yuval-fix-59381
Browse files Browse the repository at this point in the history
rgw/lua: fix CopyFrom crash
  • Loading branch information
yuvalif committed Apr 30, 2023
2 parents 0111970 + 9b0e957 commit c12a830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_lua_request.cc
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ struct RequestMetaTable : public EmptyMetaTable {
create_metatable<ObjectMetaTable>(L, false, s->object);
} else if (strcasecmp(index, "CopyFrom") == 0) {
if (s->op_type == RGW_OP_COPY_OBJ) {
create_metatable<CopyFromMetaTable>(L, s);
create_metatable<CopyFromMetaTable>(L, false, s);
} else {
lua_pushnil(L);
}
Expand Down

0 comments on commit c12a830

Please sign in to comment.