对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

sh.waitForPingChange()(mongosh方法)

sh.waitForPingChange(activePings, timeout, interval)

sh.waitForPingChange() waits for a change in ping state of one of the activepings, and only returns when the specified ping changes state.

Parameter
类型
说明

activePings

阵列

mongoscollection中的活动网络探测(ping)数组。

timeout

整型

等待网络探测(ping)状态发生变化的毫秒数。

interval

整型

每个等待周期中休眠的毫秒数。

此方法可用于以下环境中托管的部署:

重要

MongoDB Atlas 集群不支持此命令。有关 Atlas 对所有命令的支持的信息,请参阅不支持的命令

给本页内容打分

在此页面上