mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-13 14:39:28 +00:00
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:
@@ -41,11 +41,13 @@ func (s OpLogs) Less(i, j int) bool {
|
||||
}
|
||||
|
||||
type OplogRow struct {
|
||||
H int64 `bson:"h"`
|
||||
V int64 `bson:"v"`
|
||||
Op string `bson:"op"`
|
||||
O bson.M `bson:"o"`
|
||||
Ts int64 `bson:"ts"`
|
||||
Timestamp int64 `bson:"ts,omitempty"`
|
||||
HistoryId int64 `bson:"h,omitempty"`
|
||||
Version int64 `bson:"v,omitempty"`
|
||||
Operation string `bson:"op,omitempty"`
|
||||
Namespace string `bson:"ns,omitempty"`
|
||||
Object bson.D `bson:"o,omitempty"`
|
||||
Query bson.D `bson:"o2,omitempty"`
|
||||
}
|
||||
|
||||
type OplogColStats struct {
|
||||
|
Reference in New Issue
Block a user