Thanks for the feedback.
On Tue, Mar 6, 2012 at 1:16 AM, Kyle Banker <ky...@10gen.com> wrote:
> Hi Brahmana,
>
> Nice work. This seems to me to be a potentially useful change. Before
> submitting the pull request, please:
>
> 1.) Thoroughly document your code.
>
> 2.) Document the behavior in the README, including a couple of examples.
Done. And submitted a pull request too.
I have another question :
Every time a file is read from gridfs using this nginx-gridfs module,
an *insert* is made to system.indexes. This behavior is without my
changes. It has always been like this.
Is this something in the nginx-gridfs module or in the mongo-c-driver?
Or is it something that is fixed in the current version of the
mongo-c-driver which nginx-gridfs is yet to pull in. (Currently it
uses the mongo-c-driver commit from August 2011)
Here is a sample log showing the inserts to the system.indexes on
requesting a file in gridfs from nginx.
Tue Mar 6 10:36:32 [conn5] insert testdb_development.system.indexes 0ms
Tue Mar 6 10:36:32 [conn5] runQuery called testdb_development.$cmd {
getlasterror: 1 }
Tue Mar 6 10:36:32 [conn5] run command testdb_development.$cmd {
getlasterror: 1 }
Tue Mar 6 10:36:32 [conn5] command testdb_development.$cmd command: {
getlasterror: 1 } ntoreturn:1 reslen:67 0ms
Tue Mar 6 10:36:32 [conn5] index already exists with diff name
_files_idn { files_id: 1, n: 1 }
Tue Mar 6 10:36:32 [conn5] insert testdb_development.system.indexes 0ms
Tue Mar 6 10:36:32 [conn5] runQuery called testdb_development.$cmd {
getlasterror: 1 }
Tue Mar 6 10:36:32 [conn5] run command testdb_development.$cmd {
getlasterror: 1 }
Tue Mar 6 10:36:32 [conn5] command testdb_development.$cmd command: {
getlasterror: 1 } ntoreturn:1 reslen:67 0ms
Tue Mar 6 10:36:32 [conn5] runQuery called
testdb_development.fs.files { query: { filename:
"users/4f5337221d41c81b0f000004/picture" }, orderby: { uploadDate: -1
} }
Tue Mar 6 10:36:32 [conn5] query testdb_development.fs.files
ntoreturn:1 nreturned:1 reslen:221 0ms
Tue Mar 6 10:36:32 [conn5] runQuery called
testdb_development.fs.chunks { query: { files_id:
ObjectId('4f5337241d41c81b0f000005'), n: 0 }, orderby: { n: 1 } }
Tue Mar 6 10:36:32 [conn5] query testdb_development.fs.chunks
ntoreturn:1 nreturned:1 reslen:11322 0ms
> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-dev" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mongodb-dev/-/weGOGNexoOEJ.
> To post to this group, send email to mongo...@googlegroups.com.
> To unsubscribe from this group, send email to
> mongodb-dev...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mongodb-dev?hl=en.
--
Regards,
Srirang G Doddihal
Brahmana.
The LIGHT shows the way.
The WISE see it.
The BRAVE walk it.
The PERSISTENT endure and complete it.
I want to do it all ALONE.