File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
driver-core/src/test/functional/com/mongodb/internal/operation Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -37,16 +37,6 @@ import static com.mongodb.ClusterFixture.getServerApi
37
37
import static com.mongodb.ClusterFixture.serverVersionLessThan
38
38
39
39
class QueryOperationHelper {
40
- static BsonDocument sanitizeExplainResult (BsonDocument document ) {
41
- document. remove(' ok' )
42
- document. remove(' millis' )
43
- document. remove(' executionStats' )
44
- document. remove(' serverInfo' )
45
- document. remove(' executionTimeMillis' )
46
- document. remove(' operationTime' )
47
- document. remove(' $clusterTime' )
48
- document
49
- }
50
40
51
41
static BsonDocument getKeyPattern (BsonDocument explainPlan ) {
52
42
BsonDocument winningPlan = explainPlan. getDocument(' queryPlanner' ). getDocument(' winningPlan' )
@@ -87,7 +77,7 @@ class QueryOperationHelper {
87
77
if (e. getErrorCode() == 43 ) {
88
78
throw new MongoCursorNotFoundException (serverCursor. getId(), e. getResponse(), serverCursor. getAddress())
89
79
} else {
90
- throw new MongoQueryException (e. getResponse(), e. getServerAddress());
80
+ throw new MongoQueryException (e. getResponse(), e. getServerAddress())
91
81
}
92
82
}
93
83
}
You can’t perform that action at this time.
0 commit comments