RGW: request fields in Lua script return wrong data?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your answer. I was able to get the Lua debug log. But I think some request fields don't work:

I have this lua script, for example:
if Request.HTTP.StorageClass == 'COLD' then
  RGWDebugLog(Request.RGWOp .. " request with StorageClass: "  .. Request.HTTP.StorageClass .. " Obj name: " .. Request.Object.Name .. " Obj ID: " .. Request.Object.Id .. " Size: " .. Request.Object.Size .. " MTime: " .. Request.Object.MTime )
end

I put an 1kb object using boto3:
s3.Object(bucket, 'test-object6').put(Body="0"*1000, ACL='public-read', StorageClass='COLD')

But the size and mtime field provided wrong data?
Lua INFO: put_obj request with StorageClass: COLD Obj name: test-object6 Obj ID: test-object6 Size: 0 MTime: 1970-01-01 08:00:00
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux