mirror of
https://github.com/versity/versitygw.git
synced 2026-09-30 03:35:42 +00:00
fix: remove legacy rdma header descriptors
These headers are not used by the cuda cuObject client/server interactions, so are not needed in this server implementation.
This commit is contained in:
@@ -121,9 +121,7 @@ func (cs *CuServer) PutObject(ctx context.Context, po s3response.PutObjectInput)
|
||||
// RDMA-accelerated path
|
||||
size, ok := cumiddleware.GetRDMASize(ctx)
|
||||
if !ok || size <= 0 {
|
||||
// Size comes from the legacy 3-header scheme or, for the combined
|
||||
// token scheme, the standard Content-Length header — neither was usable.
|
||||
return s3response.PutObjectOutput{}, fmt.Errorf("cuserver: RDMA PUT requires a positive size via the %s header or a standard Content-Length header", cumiddleware.HeaderRDMASize)
|
||||
return s3response.PutObjectOutput{}, fmt.Errorf("cuserver: RDMA PUT requires a positive Content-Length or RDMA token buffer size")
|
||||
}
|
||||
if size > int64(rdma.MaxTransferSize) {
|
||||
return s3response.PutObjectOutput{}, fmt.Errorf("cuserver: object size %d exceeds RDMA max %d", size, rdma.MaxTransferSize)
|
||||
|
||||
Reference in New Issue
Block a user