Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update file_size after write #1

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open

Conversation

adek23
Copy link

@adek23 adek23 commented Jan 10, 2014

There is a small fix for gridfs_file write, to update file_size after successful write.
Without this, it is not possible to call write more than once, because this.file_size is always 0.

paynechu and others added 24 commits August 23, 2013 13:13
Conflicts:
	lib/resty/mongol/colmt.lua
- fixed cannot load by init_by_lua, because used ngx.var.pid in module file scope, so moved to function run time scope
revert back start from 0 for advance queries
	we start the array count from 0 but need to add 1 to mongo array start from 0 
lua from 1
start the array building loop from 0
and compensate it by adding 1 to seen_n
and removing 1 from high_n
seems to work??
- fixed to_bson incorrectly handle array index
…N. So, now will convert numerical key to string before store to mongodb. And for the best practice, should avoid to use numerical key. Because there may have conflit, for example: { 'aaa', ["1"] = 'bbb } is unknown behavior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants