Yichun Zhang (agentzh) wrote on Saturday, June 13, 2015 7:06 AM
> Hello!
>
> On Mon, Jun 1, 2015 at 10:51 PM, Nelson, Erik - 2 wrote:
> > For example if I modified the dog's age in the example,
> content_by_lua
> > '
> > local mydata = require "mydata"
> > ngx.say(mydata.get_age("dog"))
> > local newdog = mydata.data.dog ..
> tostring(mydata.data.dog):len()
> > --will another copy ever run at this point?
> > mydata.data.dog = newdog
> > ';
> > Could I expect that mydata.data.dog would always be like
> > 3123456789101214
> > and never become something like
> > 311344456
>
> Correct. And even there's nonblocking I/O, the assignment itself is
> always atomic. Thanks god that nginx workers are single-threaded
> processes ;)
>
Thanks again for a great project!
----------------------------------------------------------------------
This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at http://www.bankofamerica.com/emaildisclaimer. If you are not the intended recipient, please delete this message.