Added missing oplog document fields, moved to ordered-bson.D for object, added descriptive struct field names - they don't seem to be used anywhere yet

This commit is contained in:
Tim Vaillancourt
2017-03-14 22:30:00 +01:00
parent 6e442a27b1
commit b46f031791

View File

@@ -41,11 +41,13 @@ func (s OpLogs) Less(i, j int) bool {
} }
type OplogRow struct { type OplogRow struct {
H int64 `bson:"h"` Timestamp int64 `bson:"ts,omitempty"`
V int64 `bson:"v"` HistoryId int64 `bson:"h,omitempty"`
Op string `bson:"op"` Version int64 `bson:"v,omitempty"`
O bson.M `bson:"o"` Operation string `bson:"op,omitempty"`
Ts int64 `bson:"ts"` Namespace string `bson:"ns,omitempty"`
Object bson.D `bson:"o,omitempty"`
Query bson.D `bson:"o2,omitempty"`
} }
type OplogColStats struct { type OplogColStats struct {