src/mongo/db/repl/sync_tail_test.cpp
/**
 * Creates a create collection oplog entry with given optime.
 */
Creates a create collection oplog entry with given optime.
Creates a create collection oplog entry with given optime .
OplogEntry makeCreateCollectionOplogEntry(OpTime opTime,
                                          const NamespaceString& nss = NamespaceString("test.t"),
                                          const BSONObj& options = BSONObj()) {
    BSONObjBuilder bob;
    bob.append("create", nss.coll());
    bob.appendElements(options);
    return makeCommandOplogEntry(opTime, nss, bob.obj());
}
OplogEntry makeCreateCollectionOplogEntry ( OpTime opTime , const NamespaceString & nss = NamespaceString ( " " ) , const BSONObj & options = BSONObj ( ) ) { BSONObjBuilder bob ; bob . append ( " " , nss . coll ( ) ) ; bob . appendElements ( options ) ; return makeCommandOplogEntry ( opTime , nss , bob . obj ( ) ) ; }
Creates a create collection oplog entry with given optime.
Creates a create collection oplog entry with given optime .