Collection dropped / oplog

939 views
Skip to first unread message

richardwilly98

unread,
May 16, 2013, 11:30:13 AM5/16/13
to mongod...@googlegroups.com
Hi,

If a collection is dropped in a replica set how each node is notified?
I cannot any information stored in oplog.rs
I currently use oplog.rs for replication between MongoDB and another application and I'd need to way to be nodified when a collection is dropped.

Thanks,
   Richard.

richardwilly98

unread,
May 17, 2013, 11:01:06 AM5/17/13
to mongod...@googlegroups.com
Hi,

Apparently the entry exists in oplog.rs:

{
        "ts" : {
                "t" : 1368802405,
                "i" : 1
        },
        "h" : NumberLong("894799308761633780"),
        "v" : 2,
        "op" : "c",
        "ns" : "mydb.$cmd",
        "o" : {
                "drop" : "mycollec"
        }
}

What c means for op attribute?

Thanks,
  Richard.

Bernie Hackett

unread,
May 17, 2013, 11:41:16 PM5/17/13
to mongod...@googlegroups.com
"c" means "command", in this case "drop". See here for the rest:



--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
 
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages