Skip to content

update file_size after write#1

Open
adek23 wants to merge 24 commits into
piplay-fork:masterfrom
adek23:master
Open

update file_size after write#1
adek23 wants to merge 24 commits into
piplay-fork:masterfrom
adek23:master

Conversation

@adek23

@adek23 adek23 commented Jan 10, 2014

Copy link
Copy Markdown

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