Hi,
I was looking into mongodb code and could not fathom this. I want to know whether during mongodb chunk movement, by the balancer, writes to that chunk are locked. I could not find any evidence for this. Does anybody know about this and can point me to the piece of code which does this?
In case mongodb does not lock writes, then how does the write happen while the chunk is migrated. Is it like we use the oplog somehow or do we change the key value in place within the chunks without worrying about consistency? By oplog what I mean is all writes to that chunk are cached and are played out once the chunk has been completely migrated.
Thanks for you replies.
Mainak.