We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc629bb commit f604d25Copy full SHA for f604d25
jstests/core/administrative/current_op/currentop_shell.js
@@ -112,6 +112,9 @@ function awaitOperations(getOperationsFunction) {
112
print(`Found command with empty 'batchSize' value; waiting for getmore: ${
113
tojson(operations)}`);
114
return false;
115
+ } else if (!operations.every(getCommandFromCurrentOpEntry)) {
116
+ print(`Waiting until all operations have a command: ${tojson(operations)}`);
117
+ return false;
118
}
119
120
return true;
@@ -131,7 +134,7 @@ function getCommandFromCurrentOpEntry(entry) {
131
134
"originatingCommand" in entry.cursor) {
132
135
return entry.cursor.originatingCommand;
133
136
} else {
- assert(false, entry);
137
+ return null;
138
139
140
0 commit comments