INNER CODE UNIT · Go

OpLogCollectionName

rwynn/gtm · gtm.go:941

func OpLogCollectionName(client *mongo.Client, o *Options) string {
	return "oplog.rs"
}

func OpLogCollection(client *mongo.Client, o *Options) *mongo.Collection {
	localDB := client.Database(o.OpLogDatabaseName)
	return localDB.Collection(o.OpLogCollectionName)
}

func ParseTimestamp(timestamp primitive.Timestamp) (uint32, uint32) {
	return timestamp.T, timestamp.I
}

func validOps() bson.M {
	return bson.M{"op": bson.M{"$in": opCodes}}
}

func LastOpTimestamp(client *mongo.Client, o *Options) (primitive.Timestamp, error) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…