if (collectionName.startsWith("system.")) {
throw new MongoServerError(10156, "cannot update system collection");
}
MongoCollection collection = resolveOrCreateCollection(collectionName);
return collection.updateDocuments(selector, update, multi, upsert);
} catch (MongoServerException e) {
putLastError(channel, e);
throw e;
}
}