File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -55,17 +55,17 @@ func startOplogSlicer(
55
55
return
56
56
}
57
57
58
- majority , err := topo .IsWriteMajorityRequested (ctx , m , writeConcern )
59
- if err != nil {
60
- l .Error ("failed to inspect requested majority: %v" , err )
58
+ majority , e := topo .IsWriteMajorityRequested (ctx , m , writeConcern )
59
+ if e != nil {
60
+ l .Error ("failed to inspect requested majority: %v" , e )
61
61
}
62
- currOpTime , err := topo .GetLastWrite (ctx , m , majority )
63
- if err != nil {
64
- if errors .Is (err , context .Canceled ) {
62
+ currOpTime , e := topo .GetLastWrite (ctx , m , majority )
63
+ if e != nil {
64
+ if errors .Is (e , context .Canceled ) {
65
65
return
66
66
}
67
67
68
- l .Error ("failed to get last write: %v" , err )
68
+ l .Error ("failed to get last write: %v" , e )
69
69
continue
70
70
}
71
71
if ! currOpTime .After (startOpTime ) {
You can’t perform that action at this time.
0 commit comments